Package org.keycloak.storage
Interface UserStorageProviderFactory<T extends UserStorageProvider>
- All Superinterfaces:
ComponentFactory<T,,UserStorageProvider> ConfiguredProvider,ProviderFactory<UserStorageProvider>
public interface UserStorageProviderFactory<T extends UserStorageProvider>
extends ComponentFactory<T,UserStorageProvider>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()create(KeycloakSession session, ComponentModel model) called per Keycloak transaction.default List<ProviderConfigProperty>configuration properties that are common across all UserStorageProvider implementationsdefault List<ProviderConfigProperty>default StringgetId()This is the name of the provider and will be showed in the admin console as an option.default voidinit(Config.Scope config) default voidonCreate(KeycloakSession session, RealmModel realm, ComponentModel model) Called when UserStorageProviderModel is created.default voidpostInit(KeycloakSessionFactory factory) default voidvalidateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config) Methods inherited from interface org.keycloak.component.ComponentFactory
create, onUpdate, preRemoveMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfigMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
-
Method Details
-
create
called per Keycloak transaction.- Specified by:
createin interfaceComponentFactory<T extends UserStorageProvider,UserStorageProvider> - Parameters:
session-model-- Returns:
-
getId
String getId()This is the name of the provider and will be showed in the admin console as an option.- Specified by:
getIdin interfaceProviderFactory<T extends UserStorageProvider>- Returns:
-
init
- Specified by:
initin interfaceProviderFactory<T extends UserStorageProvider>
-
postInit
- Specified by:
postInitin interfaceProviderFactory<T extends UserStorageProvider>
-
close
default void close()- Specified by:
closein interfaceProviderFactory<T extends UserStorageProvider>
-
getHelpText
- Specified by:
getHelpTextin interfaceConfiguredProvider
-
getConfigProperties
- Specified by:
getConfigPropertiesin interfaceConfiguredProvider
-
validateConfiguration
default void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config) throws ComponentValidationException - Specified by:
validateConfigurationin interfaceComponentFactory<T extends UserStorageProvider,UserStorageProvider> - Throws:
ComponentValidationException
-
onCreate
Called when UserStorageProviderModel is created. This allows you to do initialization of any additional configuration you need to add. For example, you may be introspecting a database or ldap schema to automatically create mappings.- Specified by:
onCreatein interfaceComponentFactory<T extends UserStorageProvider,UserStorageProvider> - Parameters:
session-realm-model-
-
getCommonProviderConfigProperties
configuration properties that are common across all UserStorageProvider implementations- Specified by:
getCommonProviderConfigPropertiesin interfaceComponentFactory<T extends UserStorageProvider,UserStorageProvider> - Returns:
-
getTypeMetadata
- Specified by:
getTypeMetadatain interfaceComponentFactory<T extends UserStorageProvider,UserStorageProvider>
-