Class KbaConfig
- java.lang.Object
-
- org.forgerock.selfservice.core.config.KbaConfig
-
public final class KbaConfig extends Object
Represents a single KBA question in various Locales.- Since:
- 0.2.0
-
-
Constructor Summary
Constructors Constructor Description KbaConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getKbaPropertyName()
Gets the property name in user json instance where kba details will be set.Map<String,Map<String,String>>
getQuestions()
Gets the kba questions.int
hashCode()
KbaConfig
setKbaPropertyName(String kbaPropertyName)
Sets the property name in user json instance where kba details will be set.KbaConfig
setQuestions(Map<String,Map<String,String>> questions)
Sets the kba questions.
-
-
-
Method Detail
-
getKbaPropertyName
public String getKbaPropertyName()
Gets the property name in user json instance where kba details will be set.- Returns:
- property name
-
setKbaPropertyName
public KbaConfig setKbaPropertyName(String kbaPropertyName)
Sets the property name in user json instance where kba details will be set.- Parameters:
kbaPropertyName
- the property name- Returns:
- this config instance
-
getQuestions
public Map<String,Map<String,String>> getQuestions()
Gets the kba questions. The questions will be in the format of: { "1": { "en": "What's your favorite color?", "en_GB": "What is your favourite colour?", "fr": "Quelle est votre couleur préférée?" }, "2": { "en": "Who was your first employer?" } }- Returns:
- property name
-
setQuestions
public KbaConfig setQuestions(Map<String,Map<String,String>> questions)
Sets the kba questions. Questions will be in the format of: { "1": { "en": "What's your favorite color?", "en_GB": "What is your favourite colour?", "fr": "Quelle est votre couleur préférée?" }, "2": { "en": "Who was your first employer?" } } The number values above represent the questionId's and the inner string values represent the question locale and its translation.- Parameters:
questions
- the kba question- Returns:
- this config instance
-
-