Class AbstractClientRegistrationPolicyFactory
java.lang.Object
org.keycloak.services.clientregistration.policy.AbstractClientRegistrationPolicyFactory
- All Implemented Interfaces:
ComponentFactory<ClientRegistrationPolicy,
,ClientRegistrationPolicy> ConfiguredProvider
,ProviderFactory<ClientRegistrationPolicy>
,ClientRegistrationPolicyFactory
- Direct Known Subclasses:
ClientDisabledClientRegistrationPolicyFactory
,ClientScopesClientRegistrationPolicyFactory
,ConsentRequiredClientRegistrationPolicyFactory
,MaxClientsClientRegistrationPolicyFactory
,ProtocolMappersClientRegistrationPolicyFactory
,ScopeClientRegistrationPolicyFactory
,TrustedHostClientRegistrationPolicyFactory
public abstract class AbstractClientRegistrationPolicyFactory
extends Object
implements ClientRegistrationPolicyFactory
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This is called when the server shuts down.getConfigProperties
(KeycloakSession session) Get config properties filled for particular session.void
init
(Config.Scope config) Only called once when the factory is first created.void
postInit
(KeycloakSessionFactory factory) Called after all provider factories have been initializedvoid
validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) Called before a component is created or updated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.component.ComponentFactory
create, create, getCommonProviderConfigProperties, getTypeMetadata, onCreate, onUpdate, preRemove
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig, getConfigProperties, getHelpText
Methods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, getId, order
-
Field Details
-
sessionFactory
-
-
Constructor Details
-
AbstractClientRegistrationPolicyFactory
public AbstractClientRegistrationPolicyFactory()
-
-
Method Details
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<ClientRegistrationPolicy>
-
postInit
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<ClientRegistrationPolicy>
-
close
public void close()Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory<ClientRegistrationPolicy>
-
validateConfiguration
public void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config) throws ComponentValidationException Description copied from interface:ComponentFactory
Called before a component is created or updated. Allows you to validate the configuration- Specified by:
validateConfiguration
in interfaceComponentFactory<ClientRegistrationPolicy,
ClientRegistrationPolicy> - Throws:
ComponentValidationException
-
getConfigProperties
Description copied from interface:ClientRegistrationPolicyFactory
Get config properties filled for particular session. It assumes the session.getContext() has set realm- Specified by:
getConfigProperties
in interfaceClientRegistrationPolicyFactory
- Returns:
-