Class KbaCreateCallback
java.lang.Object
org.forgerock.openam.authentication.callbacks.KbaCreateCallback
- All Implemented Interfaces:
Serializable
,Callback
A callback to collect a user's choice of security question and their answer to that question.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder for KbaCreateCallback. -
Method Summary
Modifier and TypeMethodDescriptionstatic KbaCreateCallback.Builder
builder()
Get a builder for constructing a new KbaCreateCallback.Get the predefined questions available to the user to choose from.Get the prompt for this callback.Get the user's chosen response to their chosen question.Set the user's choice of predefined question or their own custom question.boolean
Get whether the user is allowed to define their own question.setSelectedAnswer
(String selectedAnswer) Set the user's chosen response to their chosen question.setSelectedQuestion
(String selectedQuestion) Set the user's chosen question.
-
Method Details
-
getPrompt
Get the prompt for this callback.- Returns:
- this callback's prompt
-
getPredefinedQuestions
Get the predefined questions available to the user to choose from.- Returns:
- the list of predefined questions
-
getSelectedQuestion
Set the user's choice of predefined question or their own custom question.- Returns:
- the user's chosen question
-
setSelectedQuestion
Set the user's chosen question.- Parameters:
selectedQuestion
- the user's chosen question- Returns:
- this callback
-
getSelectedAnswer
Get the user's chosen response to their chosen question.- Returns:
- the user's chosen response
-
setSelectedAnswer
Set the user's chosen response to their chosen question.- Parameters:
selectedAnswer
- the user's chosen response- Returns:
- this callback
-
isAllowUserDefinedQuestions
Get whether the user is allowed to define their own question.- Returns:
- whether the user is allowed to define their own question
-
builder
Get a builder for constructing a new KbaCreateCallback.- Returns:
- a new builder
-