Class JwtCredentialBuilder
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.credentialbuilder.JwtCredentialBuilder
- All Implemented Interfaces:
CredentialBuilder
,Provider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildCredentialBody
(VerifiableCredential verifiableCredential, CredentialBuildConfig credentialBuildConfig) Builds a verifiable credential of a specific format from the basis of an internal representation of the credential.Returns the credential format supported by the builder.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.credentialbuilder.CredentialBuilder
close
-
Constructor Details
-
JwtCredentialBuilder
-
-
Method Details
-
getSupportedFormat
Description copied from interface:CredentialBuilder
Returns the credential format supported by the builder.- Specified by:
getSupportedFormat
in interfaceCredentialBuilder
-
buildCredentialBody
public JwtCredentialBody buildCredentialBody(VerifiableCredential verifiableCredential, CredentialBuildConfig credentialBuildConfig) throws CredentialBuilderException Description copied from interface:CredentialBuilder
Builds a verifiable credential of a specific format from the basis of an internal representation of the credential.The credential is built incompletely, intended that it would be signed externally.
- Specified by:
buildCredentialBody
in interfaceCredentialBuilder
- Parameters:
verifiableCredential
- an internal representation of the credentialcredentialBuildConfig
- additional configurations for building the credential- Returns:
- the built verifiable credential of the specific format, ready to be signed
- Throws:
CredentialBuilderException
-