Class KbaCreateCallback.Builder

java.lang.Object
org.forgerock.openam.authentication.callbacks.KbaCreateCallback.Builder
Enclosing class:
KbaCreateCallback

@Supported public static final class KbaCreateCallback.Builder extends Object
Builder for KbaCreateCallback.
  • Method Details

    • withPrompt

      @Supported public KbaCreateCallback.Builder withPrompt(String prompt)
      Set the prompt for the callback.
      Parameters:
      prompt - the prompt
      Returns:
      this builder
    • withPredefinedQuestions

      @Supported public KbaCreateCallback.Builder withPredefinedQuestions(List<String> predefinedQuestions)
      Set the predefined questions for the callback.
      Parameters:
      predefinedQuestions - the predefined questions
      Returns:
      this builder
    • withAllowUserDefinedQuestions

      @Supported public KbaCreateCallback.Builder withAllowUserDefinedQuestions(boolean allowUserDefinedQuestions)
      Set whether the user is allowed to define their own question.
      Parameters:
      allowUserDefinedQuestions - whether the user is allowed to define their own question
      Returns:
      this builder
    • build

      @Supported public KbaCreateCallback build()
      Build the KbaCreateCallback.
      Returns:
      the KbaCreateCallback