public abstract class AbstractLoginProtocolFactory extends Object implements LoginProtocolFactory
Constructor and Description |
---|
AbstractLoginProtocolFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDefaultClientScopes(RealmModel realm,
ClientModel newClient) |
protected void |
addDefaultClientScopes(RealmModel realm,
List<ClientModel> newClients) |
protected abstract void |
addDefaults(ClientModel realm) |
void |
close()
This is called when the server shuts down.
|
void |
createDefaultClientScopes(RealmModel newRealm,
boolean addScopesToExistingClients)
Called when new realm is created
|
protected abstract void |
createDefaultClientScopesImpl(RealmModel newRealm)
Impl should create default client scopes.
|
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 initialized
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createProtocolEndpoint, getBuiltinMappers, setupClientDefaults
create, getId, order
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<LoginProtocol>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<LoginProtocol>
public void createDefaultClientScopes(RealmModel newRealm, boolean addScopesToExistingClients)
LoginProtocolFactory
createDefaultClientScopes
in interface LoginProtocolFactory
addScopesToExistingClients
- If true, then existing realm clients will be updated (created realm default scopes will be added to them)protected abstract void createDefaultClientScopesImpl(RealmModel newRealm)
protected void addDefaultClientScopes(RealmModel realm, ClientModel newClient)
protected void addDefaultClientScopes(RealmModel realm, List<ClientModel> newClients)
protected abstract void addDefaults(ClientModel realm)
public void close()
ProviderFactory
close
in interface ProviderFactory<LoginProtocol>
Copyright © 2020 JBoss by Red Hat. All rights reserved.