Package org.keycloak.component
Interface ComponentFactory<CreatedType,ProviderType extends Provider>
- All Superinterfaces:
ConfiguredProvider
,ProviderFactory<ProviderType>
- All Known Subinterfaces:
AmphibianProviderFactory<ProviderType>
,ClientRegistrationPolicyFactory
,ClientScopeStorageProviderFactory<T>
,ClientStorageProviderFactory<T>
,GroupStorageProviderFactory<T>
,KeyProviderFactory<T>
,LDAPStorageMapperFactory<T>
,RoleStorageProviderFactory<T>
,SubComponentFactory<CreatedType,
,ProviderType> UiPageProviderFactory<T>
,UiTabProviderFactory<T>
,UserStorageProviderFactory<T>
,VCSigningServiceProviderFactory
- All Known Implementing Classes:
AbstractClientRegistrationPolicyFactory
,AbstractEcKeyProviderFactory
,AbstractEddsaKeyProviderFactory
,AbstractGeneratedEcKeyProviderFactory
,AbstractGeneratedRsaKeyProviderFactory
,AbstractGeneratedSecretKeyProviderFactory
,AbstractImportedRsaKeyProviderFactory
,AbstractLDAPStorageMapperFactory
,AbstractRsaKeyProviderFactory
,CertificateLDAPStorageMapperFactory
,ClientDisabledClientRegistrationPolicyFactory
,ClientScopesClientRegistrationPolicyFactory
,ConsentRequiredClientRegistrationPolicyFactory
,DeclarativeUserProfileProviderFactory
,FullNameLDAPStorageMapperFactory
,GeneratedAesKeyProviderFactory
,GeneratedEcdhKeyProviderFactory
,GeneratedEcdsaKeyProviderFactory
,GeneratedEddsaKeyProviderFactory
,GeneratedHmacKeyProviderFactory
,GeneratedRsaEncKeyProviderFactory
,GeneratedRsaKeyProviderFactory
,GroupLDAPStorageMapperFactory
,HardcodedAttributeMapperFactory
,HardcodedLDAPAttributeMapperFactory
,HardcodedLDAPGroupStorageMapperFactory
,HardcodedLDAPRoleStorageMapperFactory
,ImportedRsaEncKeyProviderFactory
,ImportedRsaKeyProviderFactory
,JavaKeystoreKeyProviderFactory
,JwtSigningServiceProviderFactory
,KerberosFederationProviderFactory
,KerberosPrincipalAttributeMapperFactory
,LDAPStorageProviderFactory
,LDSigningServiceProviderFactory
,MaxClientsClientRegistrationPolicyFactory
,MSADLDSUserAccountControlStorageMapperFactory
,MSADUserAccountControlStorageMapperFactory
,ProtocolMappersClientRegistrationPolicyFactory
,RoleLDAPStorageMapperFactory
,ScopeClientRegistrationPolicyFactory
,SdJwtSigningServiceProviderFactory
,SSSDFederationProviderFactory
,TrustedHostClientRegistrationPolicyFactory
,UserAttributeLDAPStorageMapperFactory
public interface ComponentFactory<CreatedType,ProviderType extends Provider>
extends ProviderFactory<ProviderType>, ConfiguredProvider
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptiondefault ProviderType
create
(KeycloakSession session) create
(KeycloakSession session, ComponentModel model) default List<ProviderConfigProperty>
These are config properties that are common across all implementation of this component typeThis is metadata about this component type.default void
onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) Called after a component is createddefault void
onUpdate
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) Called after the component is updated.default void
preRemove
(KeycloakSession session, RealmModel realm, ComponentModel model) Called before the component is removed.default void
validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) Called before a component is created or updated.Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig, getConfigProperties, getHelpText
Methods inherited from interface org.keycloak.provider.ProviderFactory
close, getConfigMetadata, getId, init, order, postInit
-
Method Details
-
create
-
create
- Specified by:
create
in interfaceProviderFactory<CreatedType>
-
validateConfiguration
default void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) throws ComponentValidationException Called before a component is created or updated. Allows you to validate the configuration- Parameters:
session
-realm
-model
-- Throws:
ComponentValidationException
-
onCreate
Called after a component is created- Parameters:
session
-realm
-model
-
-
onUpdate
default void onUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) Called after the component is updated.- Parameters:
session
-realm
-oldModel
- old saved modelnewModel
- new configuration
-
preRemove
Called before the component is removed.- Parameters:
session
-realm
-model
- model of the component, which is going to be removed
-
getCommonProviderConfigProperties
These are config properties that are common across all implementation of this component type- Returns:
-
getTypeMetadata
This is metadata about this component type. Its really configuration information about the component type and not an individual instance- Returns:
-