Interface VCSigningServiceProviderFactory
- All Superinterfaces:
ComponentFactory<VerifiableCredentialsSigningService,,VerifiableCredentialsSigningService> ConfiguredProvider,EnvironmentDependentProviderFactory,ProviderFactory<VerifiableCredentialsSigningService>
- All Known Implementing Classes:
JwtSigningServiceProviderFactory,LDSigningServiceProviderFactory,SdJwtSigningServiceProviderFactory
public interface VCSigningServiceProviderFactory
extends ComponentFactory<VerifiableCredentialsSigningService,VerifiableCredentialsSigningService>, EnvironmentDependentProviderFactory
Provider Factory to create
VerifiableCredentialsSigningServices- Author:
- Stefan Wiedemann
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey for the realm attribute providing the issuerDidy. -
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 booleandefault booleanisSupported(Config.Scope config) An alternative toEnvironmentDependentProviderFactory.isSupported()method to check if the provider is supported 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
getConfigMetadata, getId, order
-
Field Details
-
ISSUER_DID_REALM_ATTRIBUTE_KEY
Key for the realm attribute providing the issuerDidy.- See Also:
-
-
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:EnvironmentDependentProviderFactoryAn alternative toEnvironmentDependentProviderFactory.isSupported()method to check if the provider is supported based on the provider configuration.- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Parameters:
config- the provider configuration- Returns:
trueif the provider is supported. Otherwise,false.
-
isSupported
default boolean isSupported()- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Returns:
trueif the provider is supported and should be available,falseotherwise
-
validateSpecificConfiguration
void validateSpecificConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) throws ComponentValidationException Should validate potential implementation specific configuration of the factory.- Throws:
ComponentValidationException
-
supportedFormat
Format supportedFormat()Should return the credentials format supported by the signing service.- Returns:
- the format
-