Class RegistrationRecaptcha
java.lang.Object
org.keycloak.authentication.forms.RegistrationRecaptcha
- All Implemented Interfaces:
ConfigurableAuthenticatorFactory,FormAction,FormActionFactory,ConfiguredProvider,Provider,ProviderFactory<FormAction>
public class RegistrationRecaptcha
extends Object
implements FormAction, FormActionFactory, ConfiguredProvider
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildPage(FormContext context, LoginFormsProvider form) voidclose()booleanconfiguredFor(KeycloakSession session, RealmModel realm, UserModel user) create(KeycloakSession session) getId()voidinit(Config.Scope config) booleanbooleanvoidpostInit(KeycloakSessionFactory factory) booleanvoidsetRequiredActions(KeycloakSession session, RealmModel realm, UserModel user) voidsuccess(FormContext context) voidvalidate(ValidationContext context) protected booleanvalidateRecaptcha(ValidationContext context, boolean success, String captcha, String secret) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfigMethods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Field Details
-
G_RECAPTCHA_RESPONSE
- See Also:
-
RECAPTCHA_REFERENCE_CATEGORY
- See Also:
-
SITE_KEY
- See Also:
-
SITE_SECRET
- See Also:
-
USE_RECAPTCHA_NET
- See Also:
-
PROVIDER_ID
- See Also:
-
-
Constructor Details
-
RegistrationRecaptcha
public RegistrationRecaptcha()
-
-
Method Details
-
getDisplayType
- Specified by:
getDisplayTypein interfaceConfigurableAuthenticatorFactory
-
getReferenceCategory
- Specified by:
getReferenceCategoryin interfaceConfigurableAuthenticatorFactory
-
isConfigurable
public boolean isConfigurable()- Specified by:
isConfigurablein interfaceConfigurableAuthenticatorFactory
-
getRequirementChoices
- Specified by:
getRequirementChoicesin interfaceConfigurableAuthenticatorFactory
-
buildPage
- Specified by:
buildPagein interfaceFormAction
-
validate
- Specified by:
validatein interfaceFormAction
-
validateRecaptcha
protected boolean validateRecaptcha(ValidationContext context, boolean success, String captcha, String secret) -
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>
-
getId
- Specified by:
getIdin interfaceProviderFactory<FormAction>
-
getHelpText
- Specified by:
getHelpTextin interfaceConfiguredProvider
-
getConfigProperties
- Specified by:
getConfigPropertiesin interfaceConfiguredProvider
-