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
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final KeycloakSessionprotected final Stringprotected final StringFields inherited from interface org.keycloak.protocol.oid4vc.issuance.signing.VerifiableCredentialsSigningService
LOCATION_SEPARATOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSigningService(KeycloakSession keycloakSession, String keyId, String format, String type) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected KeyWrapperReturns the key stored under kid, or the active key for the given jws algorithm,protected SignatureVerifierContextgetVerifier(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, waitMethods 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:VerifiableCredentialsSigningServiceReturns 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:
locatorin interfaceVerifiableCredentialsSigningService<T>
-
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()
-