Class LDCredentialSigner
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.signing.AbstractCredentialSigner<VerifiableCredential>
org.keycloak.protocol.oid4vc.issuance.signing.LDCredentialSigner
- All Implemented Interfaces:
CredentialSigner<VerifiableCredential>
,Provider
CredentialSigner
implementing the JWT_VC format. It returns the signed JWT-Credential as a String.
-
Field Summary
FieldsFields inherited from class org.keycloak.protocol.oid4vc.issuance.signing.AbstractCredentialSigner
keycloakSession
-
Constructor Summary
ConstructorsConstructorDescriptionLDCredentialSigner
(KeycloakSession keycloakSession, TimeProvider timeProvider) -
Method Summary
Modifier and TypeMethodDescriptionsignCredential
(CredentialBody credentialBody, CredentialBuildConfig credentialBuildConfig) Takes a verifiable credential and signs it according to the implementation.Methods inherited from class org.keycloak.protocol.oid4vc.issuance.signing.AbstractCredentialSigner
getKey, getKeyWithKidSubstitute, getSigner
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.protocol.oid4vc.issuance.signing.CredentialSigner
close
-
Field Details
-
PROOF_PURPOSE_ASSERTION
- See Also:
-
PROOF_KEY
- See Also:
-
-
Constructor Details
-
LDCredentialSigner
-
-
Method Details
-
signCredential
public VerifiableCredential 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 signedcredentialBuildConfig
- additional configurations for building the credential- Returns:
- a signed representation
- Throws:
CredentialSignerException
-