Class KbaCreateCallback

  • All Implemented Interfaces:
    java.io.Serializable , org.forgerock.android.auth.callback.Callback

    
    public class KbaCreateCallback
    extends AbstractPromptCallback
                        

    A callback to collect a user's choice of security question and their answer to that question.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public String prompt
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void setSelectedQuestion(String selectedQuestion) Set the user's chosen question.
      void setSelectedAnswer(String selectedAnswer) Set the user's chosen response to their chosen question.
      String getType() Return the type of the Callback, the type name should align with the Callback type returned from AM
      • Methods inherited from class org.forgerock.android.auth.callback.AbstractCallback

        getContent, getInputValue, getInputValue, get_id
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KbaCreateCallback

        KbaCreateCallback()
      • KbaCreateCallback

        KbaCreateCallback(JSONObject raw, int index)
    • Method Detail

      • setSelectedQuestion

         void setSelectedQuestion(String selectedQuestion)

        Set the user's chosen question.

        Parameters:
        selectedQuestion - the user's chosen question
      • setSelectedAnswer

         void setSelectedAnswer(String selectedAnswer)

        Set the user's chosen response to their chosen question.

        Parameters:
        selectedAnswer - the user's chosen response
      • getType

         String getType()

        Return the type of the Callback, the type name should align with the Callback type returned from AM