Package org.keycloak.broker.oidc
Class KeycloakOIDCIdentityProviderFactory
- java.lang.Object
-
- org.keycloak.broker.provider.AbstractIdentityProviderFactory<KeycloakOIDCIdentityProvider>
-
- org.keycloak.broker.oidc.KeycloakOIDCIdentityProviderFactory
-
- All Implemented Interfaces:
IdentityProviderFactory<KeycloakOIDCIdentityProvider>
,ProviderFactory<KeycloakOIDCIdentityProvider>
public class KeycloakOIDCIdentityProviderFactory extends AbstractIdentityProviderFactory<KeycloakOIDCIdentityProvider>
- Author:
- Pedro Igor
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROVIDER_ID
-
Constructor Summary
Constructors Constructor Description KeycloakOIDCIdentityProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeycloakOIDCIdentityProvider
create(KeycloakSession session, IdentityProviderModel model)
Creates anIdentityProvider
based on the configuration contained inmodel
.OIDCIdentityProviderConfig
createConfig()
Creates a provider specificIdentityProviderModel
instance.String
getId()
String
getName()
A friendly name for this factory.Map<String,String>
parseConfig(KeycloakSession session, InputStream inputStream)
Creates anIdentityProvider
based on the configuration frominputStream
.-
Methods inherited from class org.keycloak.broker.provider.AbstractIdentityProviderFactory
close, create, init, 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:IdentityProviderFactory
A friendly name for this factory.
- Returns:
-
create
public KeycloakOIDCIdentityProvider create(KeycloakSession session, IdentityProviderModel model)
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:
-
getId
public String getId()
-
parseConfig
public Map<String,String> parseConfig(KeycloakSession session, InputStream inputStream)
Description copied from interface:IdentityProviderFactory
Creates an
IdentityProvider
based on the configuration frominputStream
.- Specified by:
parseConfig
in interfaceIdentityProviderFactory<KeycloakOIDCIdentityProvider>
- Overrides:
parseConfig
in classAbstractIdentityProviderFactory<KeycloakOIDCIdentityProvider>
inputStream
- The input stream from where configuration will be loaded from..- Returns:
-
createConfig
public OIDCIdentityProviderConfig 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
-
-