Class AbstractClientAuthenticator
java.lang.Object
org.keycloak.authentication.authenticators.client.AbstractClientAuthenticator
- All Implemented Interfaces:
ClientAuthenticator,ClientAuthenticatorFactory,ConfigurableAuthenticatorFactory,ConfiguredPerClientProvider,ConfiguredProvider,Provider,ProviderFactory<ClientAuthenticator>
- Direct Known Subclasses:
ClientIdAndSecretAuthenticator,FederatedJWTClientAuthenticator,JWTClientAuthenticator,JWTClientSecretAuthenticator,X509ClientAuthenticator
public abstract class AbstractClientAuthenticator
extends Object
implements ClientAuthenticator, ClientAuthenticatorFactory
- Author:
- Marek Posolda
-
Field Summary
Fields inherited from interface org.keycloak.authentication.ConfigurableAuthenticatorFactory
REQUIREMENT_CHOICES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.create()create(KeycloakSession session) General authenticator type, i.e.voidinit(Config.Scope config) Only called once when the factory is first created.booleanDoes this authenticator have required actions that can set if the user does not have this authenticator set up?voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.authentication.ClientAuthenticator
authenticateClientMethods inherited from interface org.keycloak.authentication.ClientAuthenticatorFactory
getAdapterConfiguration, getProtocolAuthenticatorMethods, isConfigurable, supportsSecretMethods inherited from interface org.keycloak.authentication.ConfigurableAuthenticatorFactory
getDisplayType, getOptionalReferenceCategories, getRequirementChoicesMethods inherited from interface org.keycloak.provider.ConfiguredPerClientProvider
getConfigPropertiesPerClientMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig, getConfigProperties, getHelpTextMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, getId, order
-
Constructor Details
-
AbstractClientAuthenticator
public AbstractClientAuthenticator()
-
-
Method Details
-
create
- Specified by:
createin interfaceClientAuthenticatorFactory
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProvider- Specified by:
closein interfaceProviderFactory<ClientAuthenticator>
-
create
- Specified by:
createin interfaceProviderFactory<ClientAuthenticator>
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created.- Specified by:
initin interfaceProviderFactory<ClientAuthenticator>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<ClientAuthenticator>
-
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- Returns:
-
getReferenceCategory
Description copied from interface:ConfigurableAuthenticatorFactoryGeneral authenticator type, i.e. totp, password, cert.- Specified by:
getReferenceCategoryin interfaceConfigurableAuthenticatorFactory- Returns:
- null if not a referenceable category
-