Class TermsAndConditionsCallback
- java.lang.Object
-
- org.forgerock.android.auth.callback.AbstractCallback
-
- org.forgerock.android.auth.callback.TermsAndConditionsCallback
-
- All Implemented Interfaces:
java.io.Serializable,Callback
public class TermsAndConditionsCallback extends AbstractCallback
A callback to collect a user's acceptance of the configured Terms & Conditions.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.forgerock.android.auth.callback.AbstractCallback
_id, content, VALUE
-
-
Constructor Summary
Constructors Constructor Description TermsAndConditionsCallback()TermsAndConditionsCallback(org.json.JSONObject raw, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCreateDate()The create date of the Terms & Conditions.java.lang.StringgetTerms()Retrieve the Terms & Conditions.java.lang.StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AMjava.lang.StringgetVersion()Retrieves the version.voidsetAccept(boolean accept)Sets whether the Terms have been accepted.protected 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
-
-
-
-
Method Detail
-
setAttribute
protected void setAttribute(java.lang.String name, java.lang.Object value)- Specified by:
setAttributein classAbstractCallback
-
setAccept
public void setAccept(boolean accept)
Sets whether the Terms have been accepted.- Parameters:
accept- boolean representing the acceptance of the terms.
-
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
-
getVersion
public java.lang.String getVersion()
Retrieves the version.- Returns:
- the version
-
getTerms
public java.lang.String getTerms()
Retrieve the Terms & Conditions.- Returns:
- the Terms & Conditions
-
getCreateDate
public java.lang.String getCreateDate()
The create date of the Terms & Conditions.- Returns:
- the create date.
-
-