Class KbaCreateCallback.Builder
java.lang.Object
org.forgerock.openam.authentication.callbacks.KbaCreateCallback.Builder
- Enclosing class:
- KbaCreateCallback
Builder for KbaCreateCallback.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the KbaCreateCallback.withAllowUserDefinedQuestions
(boolean allowUserDefinedQuestions) Set whether the user is allowed to define their own question.withPredefinedQuestions
(List<String> predefinedQuestions) Set the predefined questions for the callback.withPrompt
(String prompt) Set the prompt for the callback.
-
Method Details
-
withPrompt
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
Build the KbaCreateCallback.- Returns:
- the KbaCreateCallback
-