Class AbstractRegistrationRecaptcha
java.lang.Object
org.keycloak.authentication.forms.AbstractRegistrationRecaptcha
- All Implemented Interfaces:
ConfigurableAuthenticatorFactory,FormAction,FormActionFactory,ConfiguredProvider,Provider,ProviderFactory<FormAction>
- Direct Known Subclasses:
RegistrationRecaptcha,RegistrationRecaptchaEnterprise
public abstract class AbstractRegistrationRecaptcha
extends Object
implements FormAction, FormActionFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.keycloak.authentication.ConfigurableAuthenticatorFactory
REQUIREMENT_CHOICES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildPage(FormContext context, LoginFormsProvider form) voidclose()booleanconfiguredFor(KeycloakSession session, RealmModel realm, UserModel user) create(KeycloakSession session) protected StringgetRecaptchaDomain(Map<String, String> config) protected abstract StringgetScriptUrl(Map<String, String> config, String userLanguageTag) voidinit(Config.Scope config) booleanbooleanvoidpostInit(KeycloakSessionFactory factory) booleanvoidsetRequiredActions(KeycloakSession session, RealmModel realm, UserModel user) voidsuccess(FormContext context) voidvalidate(ValidationContext context) protected abstract booleanprotected abstract booleanvalidateConfig(Map<String, String> config) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.authentication.ConfigurableAuthenticatorFactory
getDisplayType, getOptionalReferenceCategoriesMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig, getHelpTextMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, getId, order
-
Field Details
-
G_RECAPTCHA_RESPONSE
- See Also:
-
RECAPTCHA_REFERENCE_CATEGORY
- See Also:
-
SITE_KEY
- See Also:
-
ACTION
- See Also:
-
INVISIBLE
- See Also:
-
USE_RECAPTCHA_NET
- See Also:
-
-
Constructor Details
-
AbstractRegistrationRecaptcha
public AbstractRegistrationRecaptcha()
-
-
Method Details
-
getReferenceCategory
- Specified by:
getReferenceCategoryin interfaceConfigurableAuthenticatorFactory
-
isConfigurable
public boolean isConfigurable()- Specified by:
isConfigurablein interfaceConfigurableAuthenticatorFactory
-
getRequirementChoices
- Specified by:
getRequirementChoicesin interfaceConfigurableAuthenticatorFactory
-
getRecaptchaDomain
-
buildPage
- Specified by:
buildPagein interfaceFormAction
-
getScriptUrl
-
validateConfig
-
validate
- Specified by:
validatein interfaceFormAction
-
validate
protected abstract boolean validate(ValidationContext context, String captcha, Map<String, String> config) -
success
- Specified by:
successin interfaceFormAction
-
requiresUser
public boolean requiresUser()- Specified by:
requiresUserin interfaceFormAction
-
configuredFor
- Specified by:
configuredForin interfaceFormAction
-
setRequiredActions
- Specified by:
setRequiredActionsin interfaceFormAction
-
isUserSetupAllowed
public boolean isUserSetupAllowed()- Specified by:
isUserSetupAllowedin interfaceConfigurableAuthenticatorFactory
-
close
public void close()- Specified by:
closein interfaceProvider- Specified by:
closein interfaceProviderFactory<FormAction>
-
create
- Specified by:
createin interfaceProviderFactory<FormAction>
-
init
- Specified by:
initin interfaceProviderFactory<FormAction>
-
postInit
- Specified by:
postInitin interfaceProviderFactory<FormAction>
-
getConfigProperties
- Specified by:
getConfigPropertiesin interfaceConfiguredProvider
-