Class AbstractCredentialSigner<T>
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.signing.AbstractCredentialSigner<T>
- All Implemented Interfaces:
CredentialSigner<T>
,Provider
- Direct Known Subclasses:
JwtCredentialSigner
,LDCredentialSigner
,SdJwtCredentialSigner
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractCredentialSigner
(KeycloakSession keycloakSession) -
Method Summary
Modifier and TypeMethodDescriptionprotected KeyWrapper
Returns the key stored under keyId, or the active key for the given jws algorithm.protected KeyWrapper
getKeyWithKidSubstitute
(String keyId, String algorithm, String keyIdSubstitute) Returns the key stored under keyId, or the active key for the given jws algorithm.protected SignatureSignerContext
getSigner
(CredentialBuildConfig credentialBuildConfig) Reconstruct a signer matching a credential build configuration.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, signCredential
-
Field Details
-
keycloakSession
-
-
Constructor Details
-
AbstractCredentialSigner
-
-
Method Details
-
getSigner
Reconstruct a signer matching a credential build configuration. -
getKeyWithKidSubstitute
protected KeyWrapper getKeyWithKidSubstitute(String keyId, String algorithm, String keyIdSubstitute) Returns the key stored under keyId, or the active key for the given jws algorithm. Additionally, the function clones the key retrieved from Keycloak, replacing the original key ID by the substitute one if provided. This makes it possible to have a custom kid header when producing JSON web signatures. -
getKey
Returns the key stored under keyId, or the active key for the given jws algorithm.
-