Interface VerifiableCredentialsSigningService<T>
- All Superinterfaces:
Provider
- All Known Implementing Classes:
JwtProofBasedSigningService
,JwtSigningService
,LDSigningService
,SdJwtSigningService
,SigningService
Interface to be used for signing verifiable credentials.
- Author:
- Stefan Wiedemann
-
Field Summary
-
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.static String
locator
(String format, VerifiableCredentialType credentialType, CredentialConfigId vcConfigId) We are forcing a structure with 3 components.signCredential
(VCIssuanceContext vcIssuanceContext) Takes a verifiable credential and signs it according to the implementation.
-
Field Details
-
LOCATION_SEPARATOR
- See Also:
-
-
Method Details
-
signCredential
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:
vcIssuanceContext
- verifiable credential to sign and context info- Returns:
- a signed representation
- Throws:
VCIssuerException
-
locator
String locator()Returns the identifier of this service instance, can be either the format alone, or the combination between format, credential type and credential configuration id.- Returns:
-
locator
static String locator(String format, VerifiableCredentialType credentialType, CredentialConfigId vcConfigId) We are forcing a structure with 3 components. format::type::configId. We assume format is always set, as implementation of this interface always know their format.- Parameters:
format
-credentialType
-vcConfigId
-- Returns:
-