Package org.keycloak.storage
Interface UserStorageProviderFactory<T extends UserStorageProvider>
- All Superinterfaces:
ComponentFactory<T,,UserStorageProvider> ConfiguredProvider,ProviderFactory<UserStorageProvider>
- All Known Implementing Classes:
IpatuuraUserStorageProviderFactory,KerberosFederationProviderFactory,LDAPStorageProviderFactory,SSSDFederationProviderFactory
public interface UserStorageProviderFactory<T extends UserStorageProvider>
extends ComponentFactory<T,UserStorageProvider>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()This is called when the server shuts down.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.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.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
Description copied from interface:ProviderFactoryOnly called once when the factory is first created.- Specified by:
initin interfaceProviderFactory<T extends UserStorageProvider>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<T extends UserStorageProvider>
-
close
default void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- 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 Description copied from interface:ComponentFactoryCalled before a component is created or updated. Allows you to validate the configuration- 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
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 interfaceComponentFactory<T extends UserStorageProvider,UserStorageProvider> - Returns:
-