Package org.keycloak.protocol
Class AbstractLoginProtocolFactory
java.lang.Object
org.keycloak.protocol.AbstractLoginProtocolFactory
- All Implemented Interfaces:
LoginProtocolFactory,ProviderFactory<LoginProtocol>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientScopeDefaults(org.keycloak.representations.idm.ClientScopeRepresentation clientModel) Add default values toClientScopeRepresentations that refer to the specific login-protocolprotected voidaddDefaultClientScopes(RealmModel realm, Stream<ClientModel> newClients) protected voidaddDefaultClientScopes(RealmModel realm, ClientModel newClient) protected abstract voidaddDefaults(ClientModel clientModel) voidclose()voidcreateDefaultClientScopes(RealmModel newRealm, boolean addScopesToExistingClients) Called when new realm is createdprotected abstract voidcreateDefaultClientScopesImpl(RealmModel newRealm) Impl should create default client scopes.voidinit(org.keycloak.Config.Scope config) voidpostInit(KeycloakSessionFactory factory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.protocol.LoginProtocolFactory
createProtocolEndpoint, getBuiltinMappers, setupClientDefaultsMethods inherited from interface org.keycloak.provider.ProviderFactory
create, dependsOn, getConfigMetadata, getId, order
-
Constructor Details
-
AbstractLoginProtocolFactory
public AbstractLoginProtocolFactory()
-
-
Method Details
-
init
public void init(org.keycloak.Config.Scope config) - Specified by:
initin interfaceProviderFactory<LoginProtocol>
-
postInit
- Specified by:
postInitin interfaceProviderFactory<LoginProtocol>
-
createDefaultClientScopes
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
Impl should create default client scopes. This is called usually when new realm is created -
addDefaultClientScopes
-
addDefaultClientScopes
-
addDefaults
-
addClientScopeDefaults
public void addClientScopeDefaults(org.keycloak.representations.idm.ClientScopeRepresentation clientModel) Description copied from interface:LoginProtocolFactoryAdd default values toClientScopeRepresentations that refer to the specific login-protocol- Specified by:
addClientScopeDefaultsin interfaceLoginProtocolFactory
-
close
public void close()- Specified by:
closein interfaceProviderFactory<LoginProtocol>
-