Class SecurityAnswerDefinitionConfig
- java.lang.Object
-
- org.forgerock.selfservice.stages.kba.AbstractKbaStageConfig<SecurityAnswerDefinitionConfig>
-
- org.forgerock.selfservice.stages.kba.SecurityAnswerDefinitionConfig
-
- All Implemented Interfaces:
StageConfig
public final class SecurityAnswerDefinitionConfig extends AbstractKbaStageConfig<SecurityAnswerDefinitionConfig>
Configuration for the KBA Security Answer Definition Stage.- Since:
- 0.2.0
-
-
Constructor Summary
Constructors Constructor Description SecurityAnswerDefinitionConfig(KbaConfig kbaConfig)
Creates a new SecurityAnswerDefinitionConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getName()
Gets the name of the stage configuration.int
getNumberOfAnswersUserMustSet()
Gets the number of answers that user must set.String
getProgressStageClassName()
Gets the class name of the consuming progress stage.int
hashCode()
SecurityAnswerDefinitionConfig
self()
Returns this object, as its actual type.SecurityAnswerDefinitionConfig
setNumberOfAnswersUserMustSet(int numberOfAnswersUserMustSet)
Sets the number of answers that user must set.-
Methods inherited from class org.forgerock.selfservice.stages.kba.AbstractKbaStageConfig
getKbaPropertyName, getQuestions, setKbaPropertyName, setQuestions
-
-
-
-
Field Detail
-
NAME
public static final String NAME
Name of the stage configuration.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecurityAnswerDefinitionConfig
public SecurityAnswerDefinitionConfig(KbaConfig kbaConfig)
Creates a new SecurityAnswerDefinitionConfig.- Parameters:
kbaConfig
- the kba configuration
-
-
Method Detail
-
getNumberOfAnswersUserMustSet
public int getNumberOfAnswersUserMustSet()
Gets the number of answers that user must set.- Returns:
- the number of answers to be set
-
setNumberOfAnswersUserMustSet
public SecurityAnswerDefinitionConfig setNumberOfAnswersUserMustSet(int numberOfAnswersUserMustSet)
Sets the number of answers that user must set.- Parameters:
numberOfAnswersUserMustSet
- the number of answers to be set- Returns:
- this config instance
-
getName
public String getName()
Description copied from interface:StageConfig
Gets the name of the stage configuration.- Returns:
- the config name
-
getProgressStageClassName
public String getProgressStageClassName()
Description copied from interface:StageConfig
Gets the class name of the consuming progress stage.- Returns:
- the progress stage class name
-
self
public SecurityAnswerDefinitionConfig self()
Description copied from class:AbstractKbaStageConfig
Returns this object, as its actual type.- Specified by:
self
in classAbstractKbaStageConfig<SecurityAnswerDefinitionConfig>
- Returns:
- this object
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractKbaStageConfig<SecurityAnswerDefinitionConfig>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractKbaStageConfig<SecurityAnswerDefinitionConfig>
-
-