Skip to content

Commit 31ef253

Browse files
SdJwtOrderProcessor: the case where the presented access token has no associated issuable credential.
1 parent b2452f5 commit 31ef253

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ protected void checkPermissions(
3939
String format, Map<String, Object> requestedCredential)
4040
throws InvalidCredentialRequestException
4141
{
42+
// If no issuable credential is associated with the access token.
43+
if (issuableCredentials == null)
44+
{
45+
throw new InvalidCredentialRequestException(
46+
"No credential can be issued with the access token.");
47+
}
48+
4249
// As explained in https://www.authlete.com/developers/oid4vci/,
4350
// it is challenging to implement this step in a manner consistent
4451
// across all implementations due to the flaws of the OID4VCI spec.

0 commit comments

Comments
 (0)