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
ConstructorsConstructorDescriptionAbstractKbaStageConfig(KbaConfig config) Creates a new AbstractKbaStageConfig. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the property name in user json instance where kba details will be set.Gets the kba questions in the following format.Gets the kba secureHash.inthashCode()protected abstract Cself()Returns this object, as its actual type.setKbaPropertyName(String kbaPropertyName) Sets the property name in user json instance where kba details will be set.Sets the kba questions.setSecureHash(Map<String, Object> secureHash) Sets the kba secureHash.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.forgerock.selfservice.core.config.StageConfig
getName, getProgressStageClassName
-
Constructor Details
-
AbstractKbaStageConfig
Creates a new AbstractKbaStageConfig.- Parameters:
config- the kba configuration
-
-
Method Details
-
getQuestions
Gets the kba questions in the following format.Map<id,Map<locale,question>>
- Returns:
- the kba security questions
-
getSecureHash
Gets the kba secureHash.- Returns:
- the hashing algorithm used for kba question answers
-
setQuestions
Sets the kba questions.- Parameters:
questions- the kba question- Returns:
- this config instance
-
setSecureHash
Sets the kba secureHash.- Parameters:
secureHash- the kba secureHash- Returns:
- this config instance
-
getKbaPropertyName
Gets the property name in user json instance where kba details will be set.- Returns:
- property name
-
setKbaPropertyName
Sets the property name in user json instance where kba details will be set.- Parameters:
kbaPropertyName- the property name- Returns:
- this config instance
-
self
Returns this object, as its actual type.- Returns:
- this object
-
equals
-
hashCode
public int hashCode()
-