Class AbstractKbaStageConfig<C extends AbstractKbaStageConfig<C>>
- java.lang.Object
-
- org.forgerock.selfservice.stages.kba.AbstractKbaStageConfig<C>
-
- Type Parameters:
C
- the type of AbstractKbaStageConfig
- All Implemented Interfaces:
StageConfig
- Direct Known Subclasses:
SecurityAnswerDefinitionConfig
,SecurityAnswerVerificationConfig
public abstract class AbstractKbaStageConfig<C extends AbstractKbaStageConfig<C>> extends Object implements StageConfig
Defines the common configurations for the KBA stages.- Since:
- 0.2.0
-
-
Constructor Summary
Constructors Constructor Description AbstractKbaStageConfig(KbaConfig config)
Creates a new AbstractKbaStageConfig.
-
Method Summary
All Methods Instance Methods Abstract 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 in the following format.int
hashCode()
protected abstract C
self()
Returns this object, as its actual type.C
setKbaPropertyName(String kbaPropertyName)
Sets the property name in user json instance where kba details will be set.C
setQuestions(Map<String,Map<String,String>> questions)
Sets the kba questions.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.forgerock.selfservice.core.config.StageConfig
getName, getProgressStageClassName
-
-
-
-
Constructor Detail
-
AbstractKbaStageConfig
public AbstractKbaStageConfig(KbaConfig config)
Creates a new AbstractKbaStageConfig.- Parameters:
config
- the kba configuration
-
-
Method Detail
-
getQuestions
public Map<String,Map<String,String>> getQuestions()
Gets the kba questions in the following format.Map<id,Map<locale,question>>
- Returns:
- property name
-
setQuestions
public C setQuestions(Map<String,Map<String,String>> questions)
Sets the kba questions.- Parameters:
questions
- the kba question- Returns:
- this config instance
-
getKbaPropertyName
public String getKbaPropertyName()
Gets the property name in user json instance where kba details will be set.- Returns:
- property name
-
setKbaPropertyName
public C 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
-
self
protected abstract C self()
Returns this object, as its actual type.- Returns:
- this object
-
-