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, wait
order
public 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 ConfigurableAuthenticatorFactory
public String getReferenceCategory()
getReferenceCategory
in interface ConfigurableAuthenticatorFactory
public boolean isConfigurable()
isConfigurable
in interface ConfigurableAuthenticatorFactory
public AuthenticationExecutionModel.Requirement[] getRequirementChoices()
getRequirementChoices
in interface ConfigurableAuthenticatorFactory
public void buildPage(FormContext context, LoginFormsProvider form)
buildPage
in interface FormAction
public void validate(ValidationContext context)
validate
in interface FormAction
protected boolean validateRecaptcha(ValidationContext context, boolean success, String captcha, String secret)
public void success(FormContext context)
success
in interface FormAction
public boolean requiresUser()
requiresUser
in interface FormAction
public boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
configuredFor
in interface FormAction
public void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
setRequiredActions
in interface FormAction
public boolean isUserSetupAllowed()
isUserSetupAllowed
in interface ConfigurableAuthenticatorFactory
public void close()
close
in interface Provider
close
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 ConfiguredProvider
public List<ProviderConfigProperty> getConfigProperties()
getConfigProperties
in interface ConfiguredProvider
Copyright © 2019 JBoss by Red Hat. All rights reserved.