Class ConsentMappingCallback
- java.lang.Object
-
- org.forgerock.android.auth.callback.AbstractCallback
-
- org.forgerock.android.auth.callback.ConsentMappingCallback
-
- All Implemented Interfaces:
java.io.Serializable,Callback
public class ConsentMappingCallback extends AbstractCallback
Callback to collect user's Consent.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.forgerock.android.auth.callback.AbstractCallback
_id, content, VALUE
-
-
Constructor Summary
Constructors Constructor Description ConsentMappingCallback()ConsentMappingCallback(org.json.JSONObject jsonObject, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccessLevel()java.lang.StringgetDisplayName()java.lang.String[]getFields()java.lang.StringgetIcon()java.lang.StringgetMessage()java.lang.StringgetName()java.lang.StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AMbooleanisRequired()voidsetAccept(boolean accept)Sets whether the Consent has 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 Consent has been accepted.- Parameters:
accept- boolean representing the acceptance of the consent.
-
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
-
getName
public java.lang.String getName()
-
getDisplayName
public java.lang.String getDisplayName()
-
getIcon
public java.lang.String getIcon()
-
getAccessLevel
public java.lang.String getAccessLevel()
-
isRequired
public boolean isRequired()
-
getFields
public java.lang.String[] getFields()
-
getMessage
public java.lang.String getMessage()
-
-