Package org.keycloak.protocol
Class AbstractLoginProtocolFactory
- java.lang.Object
- 
- org.keycloak.protocol.AbstractLoginProtocolFactory
 
- 
- All Implemented Interfaces:
- LoginProtocolFactory,- ProviderFactory<LoginProtocol>
 - Direct Known Subclasses:
- DockerAuthV2ProtocolFactory,- OIDCLoginProtocolFactory,- SamlProtocolFactory
 
 public abstract class AbstractLoginProtocolFactory extends Object implements LoginProtocolFactory - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractLoginProtocolFactory()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddDefaultClientScopes(RealmModel realm, Stream<ClientModel> newClients)protected voidaddDefaultClientScopes(RealmModel realm, ClientModel newClient)protected abstract voidaddDefaults(ClientModel realm)voidclose()This is called when the server shuts down.voidcreateDefaultClientScopes(RealmModel newRealm, boolean addScopesToExistingClients)Called when new realm is createdprotected abstract voidcreateDefaultClientScopesImpl(RealmModel newRealm)Impl should create default client scopes.voidinit(Config.Scope config)Only called once when the factory is first created.voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initialized- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.protocol.LoginProtocolFactorycreateProtocolEndpoint, getBuiltinMappers, setupClientDefaults
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorycreate, getConfigMetadata, getId, order
 
- 
 
- 
- 
- 
Method Detail- 
initpublic 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<LoginProtocol>
 
 - 
postInitpublic void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<LoginProtocol>
 
 - 
createDefaultClientScopespublic void createDefaultClientScopes(RealmModel newRealm, boolean addScopesToExistingClients) Description copied from interface:LoginProtocolFactoryCalled when new realm is created- Specified by:
- createDefaultClientScopesin interface- LoginProtocolFactory
- addScopesToExistingClients- If true, then existing realm clients will be updated (created realm default scopes will be added to them)
 
 - 
createDefaultClientScopesImplprotected abstract void createDefaultClientScopesImpl(RealmModel newRealm) Impl should create default client scopes. This is called usually when new realm is created
 - 
addDefaultClientScopesprotected void addDefaultClientScopes(RealmModel realm, ClientModel newClient) 
 - 
addDefaultClientScopesprotected void addDefaultClientScopes(RealmModel realm, Stream<ClientModel> newClients) 
 - 
addDefaultsprotected abstract void addDefaults(ClientModel realm) 
 - 
closepublic void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- ProviderFactory<LoginProtocol>
 
 
- 
 
-