Skip to content

Commit 179f097

Browse files
Add the media type "dc+sd-jwt".
1 parent 3e9110a commit 179f097

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

src/main/java/com/authlete/jaxrs/server/vc/OrderFormat.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2023 Authlete, Inc.
2+
* Copyright (C) 2023-2025 Authlete, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,9 +20,25 @@
2020
import java.util.Arrays;
2121

2222

23+
/**
24+
* Order formats.
25+
*
26+
* <p>
27+
* NOTE: The media type of SD-JWT VC has been changed from {@code vc+sd-jwt} to
28+
* {@code dc+sd-jwt} by <a href="https://github.com/oauth-wg/oauth-sd-jwt-vc/pull/268"
29+
* >OAuth-SD-JWT-VC PR 268: change media type from vc+sd-jwt to dc+sd-jwt</a>.
30+
* </p>
31+
*
32+
* @see <a href="https://github.com/oauth-wg/oauth-sd-jwt-vc/pull/268"
33+
* >OAuth-SD-JWT VC PR 268: change media type from vc+sd-jwt to dc+sd-jwt</a>
34+
*
35+
* @see <a href="https://datatracker.ietf.org/meeting/121/materials/slides-121-oauth-sessb-sd-jwt-and-sd-jwt-vc-02#page=51"
36+
* >IETF 121 Dublin, SD-JWT/SD-JWT VC, Page 51</a>
37+
*/
2338
public enum OrderFormat
2439
{
25-
SD_JWT("vc+sd-jwt", new SdJwtOrderProcessor()),
40+
DC_SD_JWT("dc+sd-jwt", new SdJwtOrderProcessor()),
41+
VC_SD_JWT("vc+sd-jwt", new SdJwtOrderProcessor()),
2642
MDOC("mso_mdoc", new MdocOrderProcessor()),
2743
;
2844

src/main/java/com/authlete/jaxrs/server/vc/VerifiableCredentialType.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ public enum VerifiableCredentialType
3636
}
3737
),
3838

39+
DIGITAL_CREDENTIAL(
40+
"https://credentials.example.com/digital_credential",
41+
new String[] {
42+
StandardClaims.GIVEN_NAME,
43+
StandardClaims.FAMILY_NAME,
44+
StandardClaims.BIRTHDATE
45+
}
46+
),
47+
3948
/**
4049
* The vct used in the <a href="https://www.digital-identity-wallet.eu/"
4150
* >POTENTIAL</a> Interop Event Track 2.

0 commit comments

Comments
 (0)