Class ReCaptchaCallback
- java.lang.Object
-
- org.forgerock.android.auth.callback.AbstractCallback
-
- org.forgerock.android.auth.callback.ReCaptchaCallback
-
- All Implemented Interfaces:
java.io.Serializable,Callback
public class ReCaptchaCallback extends AbstractCallback
Callback designed for usage with the ReCaptchaNode.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.forgerock.android.auth.callback.AbstractCallback
_id, content, VALUE
-
-
Constructor Summary
Constructors Constructor Description ReCaptchaCallback()ReCaptchaCallback(org.json.JSONObject raw, int index)Constructor that creates aReCaptchaCallback.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetReCaptchaSiteKey()Retrieves the specified site key.java.lang.StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AMvoidproceed(android.content.Context context, FRListener<java.lang.Void> listener)Proceed to trigger the ReCAPTCHAprotected voidsetAttribute(java.lang.String name, java.lang.Object value)-
Methods inherited from class org.forgerock.android.auth.callback.AbstractCallback
get_id, getContent, getContentAsJson, getInputValue, getInputValue, getName, setContent, setValue, setValue
-
-
-
-
Constructor Detail
-
ReCaptchaCallback
public ReCaptchaCallback(org.json.JSONObject raw, int index)Constructor that creates aReCaptchaCallback.
-
ReCaptchaCallback
public ReCaptchaCallback()
-
-
Method Detail
-
setAttribute
protected void setAttribute(java.lang.String name, java.lang.Object value)- Specified by:
setAttributein classAbstractCallback
-
proceed
public void proceed(android.content.Context context, FRListener<java.lang.Void> listener)Proceed to trigger the ReCAPTCHA- Parameters:
context- The Application Contextlistener- Listener to lister for ReCAPTCHA result event.
-
getType
public java.lang.String getType()
Description copied from interface:CallbackReturn the type of the Callback, the type name should align with the Callback type returned from AM
-
getReCaptchaSiteKey
public java.lang.String getReCaptchaSiteKey()
Retrieves the specified site key.- Returns:
- the site key.
-
-