Class SdJwtSigningService
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.signing.SigningService<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.SigningService
keycloakSession, keyId, type
-
Constructor Summary
ConstructorDescriptionSdJwtSigningService
(KeycloakSession keycloakSession, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String keyId, String algorithmType, String tokenType, String hashAlgorithm, String issuerDid, int decoys, List<String> visibleClaims, TimeProvider timeProvider, Optional<String> kid) -
Method Summary
Modifier and TypeMethodDescriptionsignCredential
(VerifiableCredential verifiableCredential) Takes a verifiable credential and signs it according to the implementation.Methods inherited from class org.keycloak.protocol.oid4vc.issuance.signing.SigningService
close, getKey
-
Field Details
-
issuerDid
-
-
Constructor Details
-
SdJwtSigningService
public SdJwtSigningService(KeycloakSession keycloakSession, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String keyId, String algorithmType, String tokenType, String hashAlgorithm, String issuerDid, int decoys, List<String> visibleClaims, TimeProvider timeProvider, Optional<String> kid)
-
-
Method Details
-
signCredential
Description copied from interface:VerifiableCredentialsSigningService
Takes 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:
verifiableCredential
- the credential to sign- Returns:
- a signed representation
-