Interface CredentialSigner<T>

All Superinterfaces:
Provider
All Known Implementing Classes:
AbstractCredentialSigner, JwtCredentialSigner, LDCredentialSigner, SdJwtCredentialSigner

public interface CredentialSigner<T> extends Provider
Interface to be used for signing verifiable credentials.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    signCredential(CredentialBody credentialBody, CredentialBuildConfig credentialBuildConfig)
    Takes a verifiable credential and signs it according to the implementation.
  • Method Details

    • close

      default void close()
      Specified by:
      close in interface Provider
    • signCredential

      T signCredential(CredentialBody credentialBody, CredentialBuildConfig credentialBuildConfig) throws CredentialSignerException
      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