Package org.keycloak.broker.saml
Class SAMLIdentityProviderFactory
- java.lang.Object
-
- org.keycloak.broker.provider.AbstractIdentityProviderFactory<SAMLIdentityProvider>
-
- org.keycloak.broker.saml.SAMLIdentityProviderFactory
-
- All Implemented Interfaces:
IdentityProviderFactory<SAMLIdentityProvider>,ProviderFactory<SAMLIdentityProvider>
public class SAMLIdentityProviderFactory extends AbstractIdentityProviderFactory<SAMLIdentityProvider>
- Author:
- Pedro Igor
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROVIDER_ID
-
Constructor Summary
Constructors Constructor Description SAMLIdentityProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SAMLIdentityProvidercreate(KeycloakSession session, IdentityProviderModel model)Creates anIdentityProviderbased on the configuration contained inmodel.SAMLIdentityProviderConfigcreateConfig()Creates a provider specificIdentityProviderModelinstance.StringgetId()StringgetName()A friendly name for this factory.voidinit(Config.Scope config)Only called once when the factory is first created.Map<String,String>parseConfig(KeycloakSession session, InputStream inputStream)Creates anIdentityProviderbased on the configuration frominputStream.-
Methods inherited from class org.keycloak.broker.provider.AbstractIdentityProviderFactory
close, create, postInit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
-
-
-
Field Detail
-
PROVIDER_ID
public static final String PROVIDER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IdentityProviderFactoryA friendly name for this factory.
- Returns:
-
create
public SAMLIdentityProvider create(KeycloakSession session, IdentityProviderModel model)
Description copied from interface:IdentityProviderFactoryCreates an
IdentityProviderbased on the configuration contained inmodel.model- The configuration to be used to create the identity provider.- Returns:
-
createConfig
public SAMLIdentityProviderConfig createConfig()
Description copied from interface:IdentityProviderFactoryCreates a provider specific
IdentityProviderModelinstance.Providers may want to implement their own
IdentityProviderModeltype so that validations can be performed when managing the provider configuration- Returns:
- the provider specific instance
-
parseConfig
public Map<String,String> parseConfig(KeycloakSession session, InputStream inputStream)
Description copied from interface:IdentityProviderFactoryCreates an
IdentityProviderbased on the configuration frominputStream.- Specified by:
parseConfigin interfaceIdentityProviderFactory<SAMLIdentityProvider>- Overrides:
parseConfigin classAbstractIdentityProviderFactory<SAMLIdentityProvider>inputStream- The input stream from where configuration will be loaded from..- Returns:
-
getId
public String getId()
-
init
public 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 interfaceProviderFactory<SAMLIdentityProvider>- Overrides:
initin classAbstractIdentityProviderFactory<SAMLIdentityProvider>
-
-