Skip to content

Commit a1f99f6

Browse files
authored
Update README.md
minimal updates
1 parent 1e78ce2 commit a1f99f6

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ Java library for generating and processing [OpenID4VP](https://openid.net/specs/
99

1010
## Installation
1111

12+
Include the corresponding maven dependency in your pom like
13+
1214
```xml
1315
<dependency>
1416
<groupId>de.eecc.oid4vc</groupId>
1517
<artifactId>oid4vp</artifactId>
16-
<version>0.1.0-SNAPSHOT</version>
18+
<version>0.5.0</version>
1719
</dependency>
1820
```
1921

22+
Check [Maven](https://mvnrepository.com/artifact/de.eecc.oid4vc/oid4vp/versions) for the latest package version.
23+
2024
## Quick Start
2125

2226
`verifierUrl` must point to a compatible credential verification API. Any verifier that exposes the
@@ -60,7 +64,7 @@ String walletUrl = oid4Vp.toOpenId4VpUrl(request);
6064

6165
### Presentation Request Definitions
6266

63-
A presentation request definition describes **what** the verifier asks for: a [DCQL](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html) query (credential types, formats, claim paths) and optional `client_metadata`. Transport fields such as nonce, state, and response URI are added by `Oid4Vp`.
67+
A presentation request definition describes **what** the verifier asks for: a [DCQL](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html#name-digital-credentials-query-l) query (credential types, formats, claim paths) and optional `client_metadata`. Transport fields such as nonce, state, and response URI are added by `Oid4Vp`.
6468

6569
Implement `PresentationRequestDefinition` and pass it to `generatePresentationRequest`:
6670

@@ -74,7 +78,7 @@ PresentationRequestDefinition myDefinition = new PresentationRequestDefinition()
7478
public DcqlQuery.Query dcqlQuery() {
7579
return new DcqlQuery.Query(List.of(
7680
new DcqlQuery.CredentialQuery(
77-
"my_credential",
81+
"my_credential_query_id",
7882
Constants.VP_FORMAT_JWT_VC_JSON,
7983
Map.of("type_values", List.of(List.of("VerifiableCredential", "MyCredentialType"))),
8084
List.of(new DcqlQuery.ClaimsQuery("email", List.of("email"))),
@@ -123,7 +127,7 @@ import com.fasterxml.jackson.databind.JsonNode;
123127
import de.eecc.oid4vc.oid4vp.PresentationClaims;
124128
import de.eecc.oid4vc.oid4vp.VpTokenResponse;
125129
import de.eecc.oid4vc.oid4vp.api.DirectPostResult;
126-
130+
https://mvnrepository.com/artifact/de.eecc.oid4vc/oid4vp/versions
127131
import java.util.Optional;
128132

129133
// Wallet direct_post → POST /api/auth/oid4vp/response

0 commit comments

Comments
 (0)