Package org.keycloak.protocol.saml
Class SamlProtocolFactory
- java.lang.Object
- 
- org.keycloak.protocol.AbstractLoginProtocolFactory
- 
- org.keycloak.protocol.saml.SamlProtocolFactory
 
 
- 
- All Implemented Interfaces:
- LoginProtocolFactory,- ProviderFactory<LoginProtocol>
 
 public class SamlProtocolFactory extends AbstractLoginProtocolFactory - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringSCOPE_ROLE_LIST
 - 
Constructor SummaryConstructors Constructor Description SamlProtocolFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDefaults(ClientModel client)LoginProtocolcreate(KeycloakSession session)protected voidcreateDefaultClientScopesImpl(RealmModel newRealm)Impl should create default client scopes.ObjectcreateProtocolEndpoint(KeycloakSession session, EventBuilder event)Map<String,ProtocolMapperModel>getBuiltinMappers()List of built in protocol mappers that can be used to apply to clients.StringgetId()voidinit(Config.Scope config)Only called once when the factory is first created.voidsetupClientDefaults(ClientRepresentation clientRep, ClientModel newClient)Setup default values for new clients.- 
Methods inherited from class org.keycloak.protocol.AbstractLoginProtocolFactoryaddDefaultClientScopes, addDefaultClientScopes, close, createDefaultClientScopes, postInit
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Field Detail- 
SCOPE_ROLE_LISTpublic static final String SCOPE_ROLE_LIST - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createProtocolEndpointpublic Object createProtocolEndpoint(KeycloakSession session, EventBuilder event) 
 - 
createpublic LoginProtocol create(KeycloakSession session) 
 - 
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>
- Overrides:
- initin class- AbstractLoginProtocolFactory
 
 - 
getIdpublic String getId() 
 - 
getBuiltinMapperspublic Map<String,ProtocolMapperModel> getBuiltinMappers() Description copied from interface:LoginProtocolFactoryList of built in protocol mappers that can be used to apply to clients.- Returns:
 
 - 
createDefaultClientScopesImplprotected void createDefaultClientScopesImpl(RealmModel newRealm) Description copied from class:AbstractLoginProtocolFactoryImpl should create default client scopes. This is called usually when new realm is created- Specified by:
- createDefaultClientScopesImplin class- AbstractLoginProtocolFactory
 
 - 
addDefaultsprotected void addDefaults(ClientModel client) - Specified by:
- addDefaultsin class- AbstractLoginProtocolFactory
 
 - 
setupClientDefaultspublic void setupClientDefaults(ClientRepresentation clientRep, ClientModel newClient) Description copied from interface:LoginProtocolFactorySetup default values for new clients. This expects that the representation has already set up the client
 
- 
 
-