Class 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
    • Constructor Detail

      • KbaCreateCallback

        public KbaCreateCallback​(org.json.JSONObject raw,
                                 int index)
      • KbaCreateCallback

        public KbaCreateCallback()
    • Method Detail

      • 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: Callback
        Return 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