Package org.keycloak.broker.spiffe
Class SpiffeIdentityProviderFactory
java.lang.Object
org.keycloak.broker.provider.AbstractIdentityProviderFactory<SpiffeIdentityProvider>
org.keycloak.broker.spiffe.SpiffeIdentityProviderFactory
- All Implemented Interfaces:
IdentityProviderFactory<SpiffeIdentityProvider>
,ConfiguredProvider
,EnvironmentDependentProviderFactory
,ProviderFactory<SpiffeIdentityProvider>
public class SpiffeIdentityProviderFactory
extends AbstractIdentityProviderFactory<SpiffeIdentityProvider>
implements EnvironmentDependentProviderFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.boolean
isSupported
(Config.Scope config) Check if the provider is supported and should be available based on the provider configuration.parseConfig
(KeycloakSession session, String configString) 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.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
-
SpiffeIdentityProviderFactory
public SpiffeIdentityProviderFactory()
-
-
Method Details
-
getName
Description copied from interface:IdentityProviderFactory
A friendly name for this factory.
- Specified by:
getName
in interfaceIdentityProviderFactory<SpiffeIdentityProvider>
- Returns:
-
create
Description copied from interface:IdentityProviderFactory
Creates an
IdentityProvider
based on the configuration contained inmodel
.- Specified by:
create
in interfaceIdentityProviderFactory<SpiffeIdentityProvider>
model
- The configuration to be used to create the identity provider.- Returns:
-
parseConfig
Description copied from interface:IdentityProviderFactory
Creates an
IdentityProvider
based on the configuration frominputStream
.- Specified by:
parseConfig
in interfaceIdentityProviderFactory<SpiffeIdentityProvider>
- Overrides:
parseConfig
in classAbstractIdentityProviderFactory<SpiffeIdentityProvider>
configString
- The configuration for the 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- Specified by:
createConfig
in interfaceIdentityProviderFactory<SpiffeIdentityProvider>
- Returns:
- the provider specific instance
-
getId
- Specified by:
getId
in interfaceProviderFactory<SpiffeIdentityProvider>
-
isSupported
Description copied from interface:EnvironmentDependentProviderFactory
Check if the provider is supported and should be available based on the provider configuration.- Specified by:
isSupported
in interfaceEnvironmentDependentProviderFactory
- Parameters:
config
- the provider configuration- Returns:
true
if the provider is supported. Otherwise,false
.
-