Interface VCSigningServiceProviderFactory
- All Superinterfaces:
ComponentFactory<VerifiableCredentialsSigningService,,VerifiableCredentialsSigningService> ConfiguredProvider,EnvironmentDependentProviderFactory,OID4VCEnvironmentProviderFactory,ProviderFactory<VerifiableCredentialsSigningService>
- All Known Implementing Classes:
JwtSigningServiceProviderFactory,LDSigningServiceProviderFactory,SdJwtSigningServiceProviderFactory
public interface VCSigningServiceProviderFactory
extends ComponentFactory<VerifiableCredentialsSigningService,VerifiableCredentialsSigningService>, OID4VCEnvironmentProviderFactory
Provider Factory to create
VerifiableCredentialsSigningServices- Author:
- Stefan Wiedemann
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()This is called when the server shuts down.static ProviderConfigurationBuilderdefault voidinit(Config.Scope config) Only called once when the factory is first created.default booleanisSupported(Config.Scope config) Check if the provider is supported and should be available based on the provider configuration.default voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedShould return the credentials format supported by the signing service.default voidvalidateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) Called before a component is created or updated.voidvalidateSpecificConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) Should validate potential implementation specific configuration of the factory.Methods inherited from interface org.keycloak.component.ComponentFactory
create, create, getCommonProviderConfigProperties, getTypeMetadata, onCreate, onUpdate, preRemoveMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig, getConfigProperties, getHelpTextMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, getId, order
-
Method Details
-
configurationBuilder
-
validateConfiguration
default void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) throws ComponentValidationException Description copied from interface:ComponentFactoryCalled before a component is created or updated. Allows you to validate the configuration- Specified by:
validateConfigurationin interfaceComponentFactory<VerifiableCredentialsSigningService,VerifiableCredentialsSigningService> - Throws:
ComponentValidationException
-
close
default void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<VerifiableCredentialsSigningService>
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
initin interfaceProviderFactory<VerifiableCredentialsSigningService>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<VerifiableCredentialsSigningService>
-
isSupported
Description copied from interface:EnvironmentDependentProviderFactoryCheck if the provider is supported and should be available based on the provider configuration.- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Specified by:
isSupportedin interfaceOID4VCEnvironmentProviderFactory- Parameters:
config- the provider configuration- Returns:
trueif the provider is supported. Otherwise,false.
-
validateSpecificConfiguration
void validateSpecificConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) throws ComponentValidationException Should validate potential implementation specific configuration of the factory.- Throws:
ComponentValidationException
-
supportedFormat
String supportedFormat()Should return the credentials format supported by the signing service.- Returns:
- the format
-