Package org.keycloak.storage.role
Interface RoleStorageProviderFactory<T extends RoleStorageProvider>
- All Superinterfaces:
- ComponentFactory<T,,- RoleStorageProvider> - ConfiguredProvider,- ProviderFactory<RoleStorageProvider>
public interface RoleStorageProviderFactory<T extends RoleStorageProvider>
extends ComponentFactory<T,RoleStorageProvider> 
- 
Method SummaryModifier 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 RoleStorageProvider implementationsdefault List<ProviderConfigProperty>default StringgetId()This is the name of the provider.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 RoleStorageProviderModel 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, preRemoveMethods inherited from interface org.keycloak.provider.ConfiguredProvidergetConfigMethods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
- 
Method Details- 
createcalled per Keycloak transaction.- Specified by:
- createin interface- ComponentFactory<T extends RoleStorageProvider,- RoleStorageProvider> 
- Parameters:
- session-
- model-
- Returns:
 
- 
getIdString getId()This is the name of the provider.- Specified by:
- getIdin interface- ProviderFactory<T extends RoleStorageProvider>
- Returns:
 
- 
initDescription 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 RoleStorageProvider>
 
- 
postInitDescription copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<T extends RoleStorageProvider>
 
- 
closedefault void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- ProviderFactory<T extends RoleStorageProvider>
 
- 
getHelpText- Specified by:
- getHelpTextin interface- ConfiguredProvider
 
- 
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 RoleStorageProvider,- RoleStorageProvider> 
- Throws:
- ComponentValidationException
 
- 
onCreateCalled when RoleStorageProviderModel is created. This allows you to do initialization of any additional configuration you need to add.- Specified by:
- onCreatein interface- ComponentFactory<T extends RoleStorageProvider,- RoleStorageProvider> 
- Parameters:
- session-
- realm-
- model-
 
- 
getCommonProviderConfigPropertiesconfiguration properties that are common across all RoleStorageProvider implementations- Specified by:
- getCommonProviderConfigPropertiesin interface- ComponentFactory<T extends RoleStorageProvider,- RoleStorageProvider> 
- Returns:
 
- 
getTypeMetadataDescription 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 RoleStorageProvider,- RoleStorageProvider> 
- Returns:
 
 
-