You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Issuer | The request source connector [did:web](https://w3c-ccg.github.io/did-method-web/) identifier (example: `did:web:edc.example.com`). This allows the server to verify the JWT signature against the source's public key. |
10
-
| Subject | The fixed string `verifiable-credential`.|
10
+
| Subject | The same value as in the `Issuer` claim. |
11
11
| Audience | The request destination connector IDS endpoint (example: `http://edc.example.com:8181/api/v1/ids/data`). This allows the server to verify the intended audience. |
12
12
| JWT ID | A random UUID. |
13
13
| Expiration Time | A time set in the near future. |
Copy file name to clipboardexpand all lines: extensions/iam/decentralized-identity/identity-did-service/src/main/java/org/eclipse/dataspaceconnector/identity/DecentralizedIdentityService.java
Copy file name to clipboardexpand all lines: extensions/iam/decentralized-identity/identity-did-service/src/main/java/org/eclipse/dataspaceconnector/identity/JwtUtils.java
* Creates a signed JWT {@link SignedJWT} that contains a set of claims and an issuer. Although all private key types are possible, in the context of Distributed Identity and ION
48
+
* Creates a signed JWT {@link SignedJWT} that contains a set of claims and an issuer. Although all private key types are possible, in the context of Distributed Identity
52
49
* using an Elliptic Curve key ({@code P-256}) is advisable.
53
50
*
54
51
* @param privateKey A Private Key represented as {@link PrivateKeyWrapper}.
55
-
* @param issuer the "owner" of the VC, in most cases this will be the DID ID. The VC will store this in the "iss" claim
56
-
* @param audience the audience of the token, e.g. the IDS Webhook address. The VC will store this in the "aud" claim
57
-
* @param clock clock used to get current time
58
-
* @return a {@code SignedJWT} that is signed with the private key and contains all claims listed
52
+
* @param issuer the value of the token issuer claim.
53
+
* @param subject the value of the token subject claim. For Distributed Identity, this value is identical to the issuer claim.
54
+
* @param audience the value of the token audience claim, e.g. the IDS Webhook address.
55
+
* @param clock clock used to get current time.
56
+
* @return a {@code SignedJWT} that is signed with the private key and contains all claims listed.
Copy file name to clipboardexpand all lines: extensions/iam/decentralized-identity/identity-did-service/src/test/java/org/eclipse/dataspaceconnector/identity/JwtUtilsTest.java
0 commit comments