public class RegistrationRecaptcha extends Object implements FormAction, FormActionFactory, ConfiguredProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
G_RECAPTCHA_RESPONSE |
static String |
PROVIDER_ID |
static String |
RECAPTCHA_REFERENCE_CATEGORY |
static String |
SITE_KEY |
static String |
SITE_SECRET |
| Constructor and Description |
|---|
RegistrationRecaptcha() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildPage(FormContext context,
LoginFormsProvider form) |
void |
close() |
boolean |
configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user) |
FormAction |
create(KeycloakSession session) |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayType() |
String |
getHelpText() |
String |
getId() |
String |
getReferenceCategory() |
AuthenticationExecutionModel.Requirement[] |
getRequirementChoices() |
void |
init(Config.Scope config) |
boolean |
isConfigurable() |
boolean |
isUserSetupAllowed() |
void |
postInit(KeycloakSessionFactory factory) |
boolean |
requiresUser() |
void |
setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user) |
void |
success(FormContext context) |
void |
validate(ValidationContext context) |
protected boolean |
validateRecaptcha(ValidationContext context,
boolean success,
String captcha,
String secret) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitorderpublic static final String G_RECAPTCHA_RESPONSE
public static final String RECAPTCHA_REFERENCE_CATEGORY
public static final String SITE_KEY
public static final String SITE_SECRET
public static final String PROVIDER_ID
public String getDisplayType()
getDisplayType in interface ConfigurableAuthenticatorFactorypublic String getReferenceCategory()
getReferenceCategory in interface ConfigurableAuthenticatorFactorypublic boolean isConfigurable()
isConfigurable in interface ConfigurableAuthenticatorFactorypublic AuthenticationExecutionModel.Requirement[] getRequirementChoices()
getRequirementChoices in interface ConfigurableAuthenticatorFactorypublic void buildPage(FormContext context, LoginFormsProvider form)
buildPage in interface FormActionpublic void validate(ValidationContext context)
validate in interface FormActionprotected boolean validateRecaptcha(ValidationContext context, boolean success, String captcha, String secret)
public void success(FormContext context)
success in interface FormActionpublic boolean requiresUser()
requiresUser in interface FormActionpublic boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
configuredFor in interface FormActionpublic void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
setRequiredActions in interface FormActionpublic boolean isUserSetupAllowed()
isUserSetupAllowed in interface ConfigurableAuthenticatorFactorypublic void close()
close in interface Providerclose in interface ProviderFactory<FormAction>public FormAction create(KeycloakSession session)
create in interface ProviderFactory<FormAction>public void init(Config.Scope config)
init in interface ProviderFactory<FormAction>public void postInit(KeycloakSessionFactory factory)
postInit in interface ProviderFactory<FormAction>public String getId()
getId in interface ProviderFactory<FormAction>public String getHelpText()
getHelpText in interface ConfiguredProviderpublic List<ProviderConfigProperty> getConfigProperties()
getConfigProperties in interface ConfiguredProviderCopyright © 2019 JBoss by Red Hat. All rights reserved.