Package org.keycloak.sdjwt.consumer
Class JwtVcMetadataTrustedSdJwtIssuer
java.lang.Object
org.keycloak.sdjwt.consumer.JwtVcMetadataTrustedSdJwtIssuer
- All Implemented Interfaces:
TrustedSdJwtIssuer
A trusted Issuer for running SD-JWT VP verification.
This implementation targets issuers exposing verifying keys on a normalized JWT VC Issuer metadata endpoint.
- Author:
- Ingrid Kamga
- See Also:
-
Constructor Summary
ConstructorDescriptionJwtVcMetadataTrustedSdJwtIssuer
(String issuerUri, HttpDataFetcher httpDataFetcher) JwtVcMetadataTrustedSdJwtIssuer
(Pattern issuerUriPattern, HttpDataFetcher httpDataFetcher) -
Method Summary
Modifier and TypeMethodDescriptionresolveIssuerVerifyingKeys
(IssuerSignedJWT issuerSignedJWT) Resolves potential verifying keys to validate the Issuer-signed JWT.
-
Constructor Details
-
JwtVcMetadataTrustedSdJwtIssuer
- Parameters:
issuerUri
- a trusted issuer URI
-
JwtVcMetadataTrustedSdJwtIssuer
- Parameters:
issuerUriPattern
- a regex pattern for trusted issuer URIs
-
-
Method Details
-
resolveIssuerVerifyingKeys
public List<SignatureVerifierContext> resolveIssuerVerifyingKeys(IssuerSignedJWT issuerSignedJWT) throws VerificationException Description copied from interface:TrustedSdJwtIssuer
Resolves potential verifying keys to validate the Issuer-signed JWT. The method ensures that the resolved public keys can be trusted.- Specified by:
resolveIssuerVerifyingKeys
in interfaceTrustedSdJwtIssuer
- Parameters:
issuerSignedJWT
- The Issuer-signed JWT to validate.- Returns:
- trusted verifying keys
- Throws:
VerificationException
- if no trustworthy verifying key could be resolved
-