Package org.keycloak.protocol
Class AbstractLoginProtocolFactory
- java.lang.Object
-
- org.keycloak.protocol.AbstractLoginProtocolFactory
-
- All Implemented Interfaces:
LoginProtocolFactory,ProviderFactory<LoginProtocol>
public abstract class AbstractLoginProtocolFactory extends Object implements LoginProtocolFactory
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description AbstractLoginProtocolFactory()
-
Method Summary
All 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()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)voidpostInit(KeycloakSessionFactory factory)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.protocol.LoginProtocolFactory
createProtocolEndpoint, getBuiltinMappers, setupClientDefaults
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
create, getId, order
-
-
-
-
Method Detail
-
init
public void init(Config.Scope config)
- Specified by:
initin interfaceProviderFactory<LoginProtocol>
-
postInit
public void postInit(KeycloakSessionFactory factory)
- Specified by:
postInitin interfaceProviderFactory<LoginProtocol>
-
createDefaultClientScopes
public void createDefaultClientScopes(RealmModel newRealm, boolean addScopesToExistingClients)
Description copied from interface:LoginProtocolFactoryCalled when new realm is created- Specified by:
createDefaultClientScopesin interfaceLoginProtocolFactoryaddScopesToExistingClients- If true, then existing realm clients will be updated (created realm default scopes will be added to them)
-
createDefaultClientScopesImpl
protected abstract void createDefaultClientScopesImpl(RealmModel newRealm)
Impl should create default client scopes. This is called usually when new realm is created
-
addDefaultClientScopes
protected void addDefaultClientScopes(RealmModel realm, ClientModel newClient)
-
addDefaultClientScopes
protected void addDefaultClientScopes(RealmModel realm, Stream<ClientModel> newClients)
-
addDefaults
protected abstract void addDefaults(ClientModel realm)
-
close
public void close()
- Specified by:
closein interfaceProviderFactory<LoginProtocol>
-
-