Interface CaptchaProvider
-
- All Superinterfaces:
ConfigurablePlugin,DescribablePlugin,Plugin
public interface CaptchaProvider extends Plugin
This interface defines the methods that the PingFederate server calls to complete CAPTCHA from external CAPTCHA services.The 'actions' defined below help characterize the request triggering CAPTCHA.
- Since:
- 11.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCaptchaProvider.AuthenticationStatusA readonly representation of the current authentication status
-
Field Summary
Fields Modifier and Type Field Description static StringIDENTIFY_ACTIONThe action associated with getting an identifier such as a username.static StringLOGIN_ACTIONThe login 'action'.static StringPASSWORD_CHANGE_ACTIONThe password change 'action'.static StringPASSWORD_RESET_ACTIONThe password reset 'action'.static StringREGISTRATION_ACTIONThe registration 'action'.static StringUSERNAME_RECOVERY_ACTIONThe username recovery 'action'.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Map<String,Object>getCaptchaAttributes(CaptchaContext captchaContext)Provides additional attributes to the JavaScript File executing to prepare the page for CAPTCHA.StringgetJavaScriptFileName()The JavaScript file name to execute to prepare the page for CAPTCHA.default voidpostAuthenticationCallback(CaptchaProvider.AuthenticationStatus authenticationStatus, CaptchaContext captchaContext)This method provides a way for the authentication flow to provide more information about the ongoing authentication transaction to the captcha/risk provider before returning the control back to PingFederate.CaptchaResultvalidateCaptcha(CaptchaContext captchaContext)Validate CAPTCHA to determine whether the request succeeds or fails.-
Methods inherited from interface com.pingidentity.sdk.ConfigurablePlugin
configure
-
Methods inherited from interface com.pingidentity.sdk.DescribablePlugin
getPluginDescriptor
-
-
-
-
Field Detail
-
IDENTIFY_ACTION
static final String IDENTIFY_ACTION
The action associated with getting an identifier such as a username. the value is a String.- Since:
- 12.0
- See Also:
- Constant Field Values
-
LOGIN_ACTION
static final String LOGIN_ACTION
The login 'action'. The value is a String.- See Also:
- Constant Field Values
-
USERNAME_RECOVERY_ACTION
static final String USERNAME_RECOVERY_ACTION
The username recovery 'action'. The value is a String.- See Also:
- Constant Field Values
-
PASSWORD_RESET_ACTION
static final String PASSWORD_RESET_ACTION
The password reset 'action'. The value is a String.- See Also:
- Constant Field Values
-
PASSWORD_CHANGE_ACTION
static final String PASSWORD_CHANGE_ACTION
The password change 'action'. The value is a String.- See Also:
- Constant Field Values
-
REGISTRATION_ACTION
static final String REGISTRATION_ACTION
The registration 'action'. The value is a String.- See Also:
- Constant Field Values
-
-
Method Detail
-
getJavaScriptFileName
String getJavaScriptFileName()
The JavaScript file name to execute to prepare the page for CAPTCHA.- Returns:
- The JavaScript file name.
- Since:
- 11.2
-
getCaptchaAttributes
Map<String,Object> getCaptchaAttributes(CaptchaContext captchaContext)
Provides additional attributes to the JavaScript File executing to prepare the page for CAPTCHA.- Parameters:
captchaContext-CaptchaContextcontaining contextual information of the request.- Returns:
- CAPTCHA attributes to be used by the JavaScript File.
- Since:
- 11.2
-
validateCaptcha
CaptchaResult validateCaptcha(CaptchaContext captchaContext)
Validate CAPTCHA to determine whether the request succeeds or fails.- Parameters:
captchaContext-CaptchaContextcontaining contextual information of the request.- Returns:
CaptchaResultthe result of the CAPTCHA.- Since:
- 11.2
-
postAuthenticationCallback
default void postAuthenticationCallback(CaptchaProvider.AuthenticationStatus authenticationStatus, CaptchaContext captchaContext)
This method provides a way for the authentication flow to provide more information about the ongoing authentication transaction to the captcha/risk provider before returning the control back to PingFederate.- Parameters:
authenticationStatus- theCaptchaProvider.AuthenticationStatusrepresenting the authentication status.captchaContext- theCaptchaContextcontaining contextual information of the request.- Since:
- 11.3
-
-