Class KbaCreateCallback
- java.lang.Object
-
- org.forgerock.android.auth.callback.AbstractCallback
-
- org.forgerock.android.auth.callback.AbstractPromptCallback
-
- org.forgerock.android.auth.callback.KbaCreateCallback
-
- All Implemented Interfaces:
java.io.Serializable,Callback
public class KbaCreateCallback extends AbstractPromptCallback
A callback to collect a user's choice of security question and their answer to that question.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.forgerock.android.auth.callback.AbstractPromptCallback
prompt
-
Fields inherited from class org.forgerock.android.auth.callback.AbstractCallback
_id, content, VALUE
-
-
Constructor Summary
Constructors Constructor Description KbaCreateCallback()KbaCreateCallback(org.json.JSONObject raw, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getPredefinedQuestions()Get the predefined questions available to the user to choose from.java.lang.StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AMprotected voidsetAttribute(java.lang.String name, java.lang.Object value)voidsetSelectedAnswer(java.lang.String selectedAnswer)Set the user's chosen response to their chosen question.voidsetSelectedQuestion(java.lang.String selectedQuestion)Set the user's chosen question.-
Methods inherited from class org.forgerock.android.auth.callback.AbstractPromptCallback
getPrompt
-
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 classAbstractPromptCallback
-
setSelectedQuestion
public void setSelectedQuestion(java.lang.String selectedQuestion)
Set the user's chosen question.- Parameters:
selectedQuestion- the user's chosen question
-
setSelectedAnswer
public void setSelectedAnswer(java.lang.String selectedAnswer)
Set the user's chosen response to their chosen question.- Parameters:
selectedAnswer- the user's chosen response
-
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
-
getPredefinedQuestions
public java.util.List<java.lang.String> getPredefinedQuestions()
Get the predefined questions available to the user to choose from.- Returns:
- the list of predefined questions
-
-