Package org.keycloak.storage
Interface UserStorageProviderFactory<T extends UserStorageProvider>
- 
- All Superinterfaces:
- ComponentFactory<T,UserStorageProvider>,- ConfiguredProvider,- ProviderFactory<UserStorageProvider>
 - All Known Implementing Classes:
- KerberosFederationProviderFactory,- LDAPStorageProviderFactory,- SSSDFederationProviderFactory
 
 public interface UserStorageProviderFactory<T extends UserStorageProvider> extends ComponentFactory<T,UserStorageProvider> - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()This is called when the server shuts down.Tcreate(KeycloakSession session, ComponentModel model)called per Keycloak transaction.default List<ProviderConfigProperty>getCommonProviderConfigProperties()configuration properties that are common across all UserStorageProvider implementationsdefault List<ProviderConfigProperty>getConfigProperties()default StringgetHelpText()StringgetId()This is the name of the provider and will be showed in the admin console as an option.default Map<String,Object>getTypeMetadata()This is metadata about this component type.default voidinit(Config.Scope config)Only called once when the factory is first created.default voidonCreate(KeycloakSession session, RealmModel realm, ComponentModel model)Called when UserStorageProviderModel is created.default voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initializeddefault voidvalidateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config)Called before a component is created or updated.- 
Methods inherited from interface org.keycloak.component.ComponentFactorycreate, onUpdate, preRemove
 - 
Methods inherited from interface org.keycloak.provider.ConfiguredProvidergetConfig
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Method Detail- 
createT create(KeycloakSession session, ComponentModel model) called per Keycloak transaction.- Specified by:
- createin interface- ComponentFactory<T extends UserStorageProvider,UserStorageProvider>
- Parameters:
- session-
- model-
- Returns:
 
 - 
getIdString getId() This is the name of the provider and will be showed in the admin console as an option.- Specified by:
- getIdin interface- ProviderFactory<T extends UserStorageProvider>
- Returns:
 
 - 
initdefault void init(Config.Scope config) Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
- initin interface- ProviderFactory<T extends UserStorageProvider>
 
 - 
postInitdefault void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<T extends UserStorageProvider>
 
 - 
closedefault void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- ProviderFactory<T extends UserStorageProvider>
 
 - 
getHelpTextdefault String getHelpText() - Specified by:
- getHelpTextin interface- ConfiguredProvider
 
 - 
getConfigPropertiesdefault List<ProviderConfigProperty> getConfigProperties() - Specified by:
- getConfigPropertiesin interface- ConfiguredProvider
 
 - 
validateConfigurationdefault void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config) throws ComponentValidationException Description copied from interface:ComponentFactoryCalled before a component is created or updated. Allows you to validate the configuration- Specified by:
- validateConfigurationin interface- ComponentFactory<T extends UserStorageProvider,UserStorageProvider>
- Throws:
- ComponentValidationException
 
 - 
onCreatedefault void onCreate(KeycloakSession session, RealmModel realm, ComponentModel model) 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 interface- ComponentFactory<T extends UserStorageProvider,UserStorageProvider>
- Parameters:
- session-
- realm-
- model-
 
 - 
getCommonProviderConfigPropertiesdefault List<ProviderConfigProperty> getCommonProviderConfigProperties() configuration properties that are common across all UserStorageProvider implementations- Specified by:
- getCommonProviderConfigPropertiesin interface- ComponentFactory<T extends UserStorageProvider,UserStorageProvider>
- Returns:
 
 - 
getTypeMetadatadefault Map<String,Object> getTypeMetadata() Description copied from interface:ComponentFactoryThis is metadata about this component type. Its really configuration information about the component type and not an individual instance- Specified by:
- getTypeMetadatain interface- ComponentFactory<T extends UserStorageProvider,UserStorageProvider>
- Returns:
 
 
- 
 
-