Interface CaptchaProviderEnabledState
- All Known Implementing Classes:
AccountRecoveryUsernameRequired,CurrentCredentialsRequired,IdentifierRequired,NewPasswordRequired,PasswordResetRequired,RegistrationRequired,UsernamePasswordRequired,UsernameRecoveryEmailRequired
public interface CaptchaProviderEnabledState
A state that can have CAPTCHA enabled with a CAPTCHA provider.
- Since:
- 11.2
-
Method Summary
Modifier and TypeMethodDescriptionGet the CAPTCHA attributes as provided by the CAPTCHA provider plugin.Get the CAPTCHA provider plugin type.booleanReturn true when the 'CAPTCHA' for authentication feature is available.voidsetCaptchaAttributes(Map<String, Object> captchaAttributes) Set the CAPTCHA attributes as provided by the CAPTCHA provider plugin.voidsetCaptchaProviderType(String captchaProviderType) Set the CAPTCHA provider plugin type.voidsetShowCaptcha(boolean showCaptcha) Set the 'CAPTCHA' for authentication feature availability.
-
Method Details
-
getShowCaptcha
boolean getShowCaptcha()Return true when the 'CAPTCHA' for authentication feature is available.- Since:
- 11.2
-
setShowCaptcha
void setShowCaptcha(boolean showCaptcha) Set the 'CAPTCHA' for authentication feature availability.- Since:
- 11.2
-
getCaptchaProviderType
String getCaptchaProviderType()Get the CAPTCHA provider plugin type.- Since:
- 11.2
-
setCaptchaProviderType
Set the CAPTCHA provider plugin type.- Since:
- 11.2
-
getCaptchaAttributes
Get the CAPTCHA attributes as provided by the CAPTCHA provider plugin. The CAPTCHA provider plugin CAPTCHA attributes. Google's reCAPTCHA v2 CAPTCHA provider will provide 'siteKey', Google's reCAPTCHA v3 and reCAPTCHA Enterprise CAPTCHA provider will provide 'siteKey' and 'action' to be able to invoke the challenge.- Since:
- 11.2
-
setCaptchaAttributes
Set the CAPTCHA attributes as provided by the CAPTCHA provider plugin.- Since:
- 11.2
-