Class CaptchaResult
java.lang.Object
com.pingidentity.sdk.captchaprovider.CaptchaResult
Contains information about the result of
CaptchaProvider.validateCaptcha(com.pingidentity.sdk.captchaprovider.CaptchaContext).- Since:
- 11.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic CaptchaResultcreateInvalidResult(AttributeMap responseAttributes) Creates a newCaptchaResultinstance to represent a invalid CAPTCHA result.static CaptchaResultcreateValidResult(AttributeMap responseAttributes) Creates a newCaptchaResultinstance to represent a valid CAPTCHA result.The response attributes provide more information about the CAPTCHA process back to PingFederate which can then be used downstream in the flow.booleanisValid()If configured to false, PingFederate will treat the CAPTCHA process as failed.
-
Method Details
-
isValid
public boolean isValid()If configured to false, PingFederate will treat the CAPTCHA process as failed.- Returns:
- whether the CAPTCHA was successful.
-
getResponseAttributes
The response attributes provide more information about the CAPTCHA process back to PingFederate which can then be used downstream in the flow.- Returns:
- A
AttributeMapcontaining attributes from the CAPTCHA validation which may be used downstream in flow.
-
createValidResult
Creates a newCaptchaResultinstance to represent a valid CAPTCHA result.- Parameters:
responseAttributes- AAttributeMapcontaining attributes from the CAPTCHA validation which may be used downstream in flow.
-
createInvalidResult
Creates a newCaptchaResultinstance to represent a invalid CAPTCHA result.- Parameters:
responseAttributes- AAttributeMapcontaining attributes from the CAPTCHA validation which may be used downstream in flow.
-