Class ValidatedPasswordCallback
- java.lang.Object
-
- org.forgerock.android.auth.callback.AbstractCallback
-
- org.forgerock.android.auth.callback.AbstractValidatedCallback
-
- org.forgerock.android.auth.callback.ValidatedPasswordCallback
-
- All Implemented Interfaces:
java.io.Serializable,Callback
public class ValidatedPasswordCallback extends AbstractValidatedCallback
Callback to collect a password and validate it using IDM policy.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.forgerock.android.auth.callback.AbstractValidatedCallback
AbstractValidatedCallback.FailedPolicy
-
-
Field Summary
-
Fields inherited from class org.forgerock.android.auth.callback.AbstractCallback
_id, content, VALUE
-
-
Constructor Summary
Constructors Constructor Description ValidatedPasswordCallback()ValidatedPasswordCallback(org.json.JSONObject raw, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPrompt()java.lang.StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AMbooleanisEchoOn()Return whether the password should be displayed as it is being typed.protected voidsetAttribute(java.lang.String name, java.lang.Object value)voidsetPassword(char[] password)Set the retrieved password.-
Methods inherited from class org.forgerock.android.auth.callback.AbstractValidatedCallback
getFailedPolicies, getPolicies, getValidateOnly, setValidateOnly
-
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)- Overrides:
setAttributein classAbstractValidatedCallback
-
setPassword
public void setPassword(char[] password)
Set the retrieved password.- Parameters:
password- the retrieved password, which may be null.
-
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
-
isEchoOn
public boolean isEchoOn()
Return whether the password should be displayed as it is being typed.- Returns:
- the whether the password should be displayed as it is being typed.
-
getPrompt
public java.lang.String getPrompt()
- Specified by:
getPromptin classAbstractValidatedCallback
-
-