Class SdJwtSigningService
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.signing.SigningService<T>
org.keycloak.protocol.oid4vc.issuance.signing.JwtProofBasedSigningService<String>
org.keycloak.protocol.oid4vc.issuance.signing.SdJwtSigningService
- All Implemented Interfaces:
VerifiableCredentialsSigningService<String>,Provider
VerifiableCredentialsSigningService implementing the SD_JWT_VC format. It returns a String, containing
the signed SD-JWT
- Author:
- Stefan Wiedemann
-
Field Summary
Fields inherited from class org.keycloak.protocol.oid4vc.issuance.signing.JwtProofBasedSigningService
PROOF_JWT_TYPFields inherited from class org.keycloak.protocol.oid4vc.issuance.signing.SigningService
format, keycloakSession, keyId, typeFields inherited from interface org.keycloak.protocol.oid4vc.issuance.signing.VerifiableCredentialsSigningService
LOCATION_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionSdJwtSigningService(KeycloakSession keycloakSession, String keyId, String algorithmType, Optional<String> kid, VerifiableCredentialType credentialType, CredentialConfigId vcConfigId) -
Method Summary
Modifier and TypeMethodDescriptionlocator()Returns the identifier of this service instance, can be either the format alone, or the combination between format, credential type and credential configuration id.signCredential(VCIssuanceContext vcIssuanceContext) Takes a verifiable credential and signs it according to the implementation.Methods inherited from class org.keycloak.protocol.oid4vc.issuance.signing.JwtProofBasedSigningService
validateProofMethods inherited from class org.keycloak.protocol.oid4vc.issuance.signing.SigningService
close, getKey, getVerifier
-
Constructor Details
-
SdJwtSigningService
public SdJwtSigningService(KeycloakSession keycloakSession, String keyId, String algorithmType, Optional<String> kid, VerifiableCredentialType credentialType, CredentialConfigId vcConfigId)
-
-
Method Details
-
signCredential
Description copied from interface:VerifiableCredentialsSigningServiceTakes a verifiable credential and signs it according to the implementation. Depending on the type of the SigningService, it will return a signed representation of the credential- Parameters:
vcIssuanceContext- verifiable credential to sign and context info- Returns:
- a signed representation
- Throws:
VCIssuerException
-
locator
Description copied from interface:VerifiableCredentialsSigningServiceReturns the identifier of this service instance, can be either the format alone, or the combination between format, credential type and credential configuration id.- Specified by:
locatorin interfaceVerifiableCredentialsSigningService<String>- Overrides:
locatorin classSigningService<String>
-