Class DeployedScriptAuthenticatorFactory
- java.lang.Object
-
- org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory
-
- org.keycloak.authentication.authenticators.browser.DeployedScriptAuthenticatorFactory
-
- All Implemented Interfaces:
AuthenticatorFactory,ConfigurableAuthenticatorFactory,ConfiguredProvider,EnvironmentDependentProviderFactory,ProviderFactory<Authenticator>
public final class DeployedScriptAuthenticatorFactory extends ScriptBasedAuthenticatorFactory
- Author:
- Pedro Igor
-
-
Field Summary
-
Fields inherited from class org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory
PROVIDER_ID
-
-
Constructor Summary
Constructors Constructor Description DeployedScriptAuthenticatorFactory()DeployedScriptAuthenticatorFactory(ScriptProviderMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authenticatorcreate(KeycloakSession session)AuthenticatorConfigModelgetConfig()Returns a default configuration for this provider.List<ProviderConfigProperty>getConfigProperties()StringgetDisplayType()Friendly name for the authenticatorStringgetHelpText()StringgetId()ScriptProviderMetadatagetMetadata()voidinit(Config.Scope config)Only called once when the factory is first created.booleanisSupported()booleanisUserSetupAllowed()Does this authenticator have required actions that can set if the user does not have this authenticator set up?voidsetMetadata(ScriptProviderMetadata metadata)-
Methods inherited from class org.keycloak.authentication.authenticators.browser.ScriptBasedAuthenticatorFactory
close, getReferenceCategory, getRequirementChoices, isConfigurable, 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.EnvironmentDependentProviderFactory
isSupported
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
-
-
-
Constructor Detail
-
DeployedScriptAuthenticatorFactory
public DeployedScriptAuthenticatorFactory(ScriptProviderMetadata metadata)
-
DeployedScriptAuthenticatorFactory
public DeployedScriptAuthenticatorFactory()
-
-
Method Detail
-
create
public Authenticator create(KeycloakSession session)
- Specified by:
createin interfaceProviderFactory<Authenticator>- Overrides:
createin classScriptBasedAuthenticatorFactory
-
getId
public String getId()
- Specified by:
getIdin interfaceProviderFactory<Authenticator>- Overrides:
getIdin classScriptBasedAuthenticatorFactory
-
isUserSetupAllowed
public boolean isUserSetupAllowed()
Description copied from interface:ConfigurableAuthenticatorFactoryDoes this authenticator have required actions that can set if the user does not have this authenticator set up?- Specified by:
isUserSetupAllowedin interfaceConfigurableAuthenticatorFactory- Overrides:
isUserSetupAllowedin classScriptBasedAuthenticatorFactory- Returns:
-
getDisplayType
public String getDisplayType()
Description copied from interface:ConfigurableAuthenticatorFactoryFriendly name for the authenticator- Specified by:
getDisplayTypein interfaceConfigurableAuthenticatorFactory- Overrides:
getDisplayTypein classScriptBasedAuthenticatorFactory- Returns:
-
getHelpText
public String getHelpText()
- Specified by:
getHelpTextin interfaceConfiguredProvider- Overrides:
getHelpTextin classScriptBasedAuthenticatorFactory
-
isSupported
public boolean isSupported()
- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Overrides:
isSupportedin classScriptBasedAuthenticatorFactory- Returns:
trueif the provider is supported and should be available,falseotherwise
-
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<Authenticator>- Overrides:
initin classScriptBasedAuthenticatorFactory
-
getConfigProperties
public List<ProviderConfigProperty> getConfigProperties()
- Specified by:
getConfigPropertiesin interfaceConfiguredProvider- Overrides:
getConfigPropertiesin classScriptBasedAuthenticatorFactory
-
getConfig
public AuthenticatorConfigModel getConfig()
Description copied from interface:ConfiguredProviderReturns a default configuration for this provider.- Returns:
- the default configuration
-
setMetadata
public void setMetadata(ScriptProviderMetadata metadata)
-
getMetadata
public ScriptProviderMetadata getMetadata()
-
-