Class SdJwtCredentialSigner

java.lang.Object
org.keycloak.protocol.oid4vc.issuance.signing.AbstractCredentialSigner<String>
org.keycloak.protocol.oid4vc.issuance.signing.SdJwtCredentialSigner
All Implemented Interfaces:
CredentialSigner<String>, Provider

public class SdJwtCredentialSigner extends AbstractCredentialSigner<String>
CredentialSigner implementing the SD_JWT_VC format. It returns the signed SD-JWT as a String.

  • Constructor Details

    • SdJwtCredentialSigner

      public SdJwtCredentialSigner(KeycloakSession keycloakSession)
  • Method Details

    • signCredential

      public String signCredential(CredentialBody credentialBody, CredentialBuildConfig credentialBuildConfig) throws CredentialSignerException
      Description copied from interface: CredentialSigner
      Takes a verifiable credential and signs it according to the implementation. Depending on the type of the CredentialSigner, it will return a signed representation of the credential that be returned at the credential request endpoint.
      Parameters:
      credentialBody - a partially built credential representation, awaiting to be signed
      credentialBuildConfig - additional configurations for building the credential
      Returns:
      a signed representation
      Throws:
      CredentialSignerException