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>
,ConfiguredProvider
,ProviderFactory<SAMLIdentityProvider>
public class SAMLIdentityProviderFactory
extends AbstractIdentityProviderFactory<SAMLIdentityProvider>
- Author:
- Pedro Igor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(KeycloakSession session, IdentityProviderModel model) Creates anIdentityProvider
based on the configuration contained inmodel
.Creates a provider specificIdentityProviderModel
instance.getId()
getName()
A friendly name for this factory.void
init
(Config.Scope config) Only called once when the factory is first created.parseConfig
(KeycloakSession session, String config) Creates anIdentityProvider
based 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.ConfiguredProvider
getConfig
Methods inherited from interface org.keycloak.broker.provider.IdentityProviderFactory
getConfigProperties, getHelpText
Methods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
-
Field Details
-
PROVIDER_ID
- See Also:
-
-
Constructor Details
-
SAMLIdentityProviderFactory
public SAMLIdentityProviderFactory()
-
-
Method Details
-
getName
Description copied from interface:IdentityProviderFactory
A friendly name for this factory.
- Returns:
-
create
Description copied from interface:IdentityProviderFactory
Creates an
IdentityProvider
based on the configuration contained inmodel
.model
- The configuration to be used to create the identity provider.- Returns:
-
createConfig
Description copied from interface:IdentityProviderFactory
Creates a provider specific
IdentityProviderModel
instance.Providers may want to implement their own
IdentityProviderModel
type so that validations can be performed when managing the provider configuration- Returns:
- the provider specific instance
-
parseConfig
Description copied from interface:IdentityProviderFactory
Creates an
IdentityProvider
based on the configuration frominputStream
.- Specified by:
parseConfig
in interfaceIdentityProviderFactory<SAMLIdentityProvider>
- Overrides:
parseConfig
in classAbstractIdentityProviderFactory<SAMLIdentityProvider>
config
- The configuration for the provider- Returns:
-
getId
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<SAMLIdentityProvider>
- Overrides:
init
in classAbstractIdentityProviderFactory<SAMLIdentityProvider>
-