Class SigningService<T>
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.signing.SigningService<T>
- All Implemented Interfaces:
VerifiableCredentialsSigningService<T>
,Provider
- Direct Known Subclasses:
JwtProofBasedSigningService
,JwtSigningService
,LDSigningService
public abstract class SigningService<T>
extends Object
implements VerifiableCredentialsSigningService<T>
Abstract base class to provide the Signing Services common functionality
- Author:
- Stefan Wiedemann
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final KeycloakSession
protected final String
protected final String
Fields inherited from interface org.keycloak.protocol.oid4vc.issuance.signing.VerifiableCredentialsSigningService
LOCATION_SEPARATOR
-
Constructor Summary
ModifierConstructorDescriptionprotected
SigningService
(KeycloakSession keycloakSession, String keyId, String format, String type) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected KeyWrapper
Returns the key stored under kid, or the active key for the given jws algorithm,protected SignatureVerifierContext
getVerifier
(JWK jwk, String jwsAlgorithm) 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.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.VerifiableCredentialsSigningService
signCredential
-
Field Details
-
keycloakSession
-
keyId
-
type
-
format
-
-
Constructor Details
-
SigningService
-
-
Method Details
-
locator
Description copied from interface:VerifiableCredentialsSigningService
Returns the identifier of this service instance, can be either the format alone, or the combination between format, credential type and credential configuration id.- Specified by:
locator
in interfaceVerifiableCredentialsSigningService<T>
- Returns:
-
getKey
Returns the key stored under kid, or the active key for the given jws algorithm,- Parameters:
kid
-algorithm
-- Returns:
-
getVerifier
protected SignatureVerifierContext getVerifier(JWK jwk, String jwsAlgorithm) throws VerificationException - Throws:
VerificationException
-
close
public void close()
-