public class OIDCIdentityProviderFactory extends AbstractIdentityProviderFactory<OIDCIdentityProvider>
Modifier and Type | Field and Description |
---|---|
static String |
PROVIDER_ID |
Constructor and Description |
---|
OIDCIdentityProviderFactory() |
Modifier and Type | Method and Description |
---|---|
OIDCIdentityProvider |
create(KeycloakSession session,
IdentityProviderModel model)
Creates an
IdentityProvider based on the configuration contained in
model . |
OIDCIdentityProviderConfig |
createConfig()
Creates a provider specific
IdentityProviderModel instance. |
String |
getId() |
String |
getName()
A friendly name for this factory.
|
Map<String,String> |
parseConfig(KeycloakSession session,
InputStream inputStream)
Creates an
IdentityProvider based on the configuration from
inputStream . |
protected static Map<String,String> |
parseOIDCConfig(KeycloakSession session,
InputStream inputStream) |
close, create, init, postInit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public static final String PROVIDER_ID
public String getName()
IdentityProviderFactory
A friendly name for this factory.
public OIDCIdentityProvider create(KeycloakSession session, IdentityProviderModel model)
IdentityProviderFactory
Creates an IdentityProvider
based on the configuration contained in
model
.
model
- The configuration to be used to create the identity provider.public OIDCIdentityProviderConfig createConfig()
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
public String getId()
public Map<String,String> parseConfig(KeycloakSession session, InputStream inputStream)
IdentityProviderFactory
Creates an IdentityProvider
based on the configuration from
inputStream
.
parseConfig
in interface IdentityProviderFactory<OIDCIdentityProvider>
parseConfig
in class AbstractIdentityProviderFactory<OIDCIdentityProvider>
inputStream
- The input stream from where configuration will be loaded from..protected static Map<String,String> parseOIDCConfig(KeycloakSession session, InputStream inputStream)
Copyright © 2021 JBoss by Red Hat. All rights reserved.