Class SecurityAnswerVerificationConfig
- java.lang.Object
-
- org.forgerock.selfservice.stages.kba.AbstractKbaStageConfig<SecurityAnswerVerificationConfig>
-
- org.forgerock.selfservice.stages.kba.SecurityAnswerVerificationConfig
-
- All Implemented Interfaces:
StageConfig
public final class SecurityAnswerVerificationConfig extends AbstractKbaStageConfig<SecurityAnswerVerificationConfig>
Configuration for the KBA Security Answer Verification Stage.- Since:
- 0.2.0
-
-
Constructor Summary
Constructors Constructor Description SecurityAnswerVerificationConfig(KbaConfig kbaConfig)
Creates a new SecurityAnswerVerificationConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getIdentityServiceUrl()
Gets the URL for the identity service.String
getName()
Gets the name of the stage configuration.int
getNumberOfQuestionsUserMustAnswer()
Gets the number of questions that user must answer.String
getProgressStageClassName()
Gets the class name of the consuming progress stage.int
hashCode()
SecurityAnswerVerificationConfig
self()
Returns this object, as its actual type.SecurityAnswerVerificationConfig
setIdentityServiceUrl(String identityServiceUrl)
Sets the URL for the identity service.SecurityAnswerVerificationConfig
setNumberOfQuestionsUserMustAnswer(int numberOfQuestionsUserMustAnswer)
Sets the number of questions that user must answer.-
Methods inherited from class org.forgerock.selfservice.stages.kba.AbstractKbaStageConfig
getKbaPropertyName, getQuestions, getSecureHash, setKbaPropertyName, setQuestions, setSecureHash
-
-
-
-
Field Detail
-
NAME
public static final String NAME
Name of the stage configuration.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecurityAnswerVerificationConfig
public SecurityAnswerVerificationConfig(KbaConfig kbaConfig)
Creates a new SecurityAnswerVerificationConfig.- Parameters:
kbaConfig
- the kba configuration
-
-
Method Detail
-
getIdentityServiceUrl
public String getIdentityServiceUrl()
Gets the URL for the identity service.- Returns:
- the identity service URL
-
setIdentityServiceUrl
public SecurityAnswerVerificationConfig setIdentityServiceUrl(String identityServiceUrl)
Sets the URL for the identity service.- Parameters:
identityServiceUrl
- the identity service URL- Returns:
- this config instance
-
getNumberOfQuestionsUserMustAnswer
public int getNumberOfQuestionsUserMustAnswer()
Gets the number of questions that user must answer.- Returns:
- the number of questions to be answered
-
setNumberOfQuestionsUserMustAnswer
public SecurityAnswerVerificationConfig setNumberOfQuestionsUserMustAnswer(int numberOfQuestionsUserMustAnswer)
Sets the number of questions that user must answer.- Parameters:
numberOfQuestionsUserMustAnswer
- the number of questions to be answered- 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 SecurityAnswerVerificationConfig self()
Description copied from class:AbstractKbaStageConfig
Returns this object, as its actual type.- Specified by:
self
in classAbstractKbaStageConfig<SecurityAnswerVerificationConfig>
- Returns:
- this object
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractKbaStageConfig<SecurityAnswerVerificationConfig>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractKbaStageConfig<SecurityAnswerVerificationConfig>
-
-