Class SecurityAnswerVerificationStage
java.lang.Object
org.forgerock.selfservice.stages.kba.AbstractKbaStage<SecurityAnswerVerificationConfig>
org.forgerock.selfservice.stages.kba.SecurityAnswerVerificationStage
- All Implemented Interfaces:
ProgressStage<SecurityAnswerVerificationConfig>
public final class SecurityAnswerVerificationStage
extends AbstractKbaStage<SecurityAnswerVerificationConfig>
Stage is responsible for verifying the answers provided by the user for the KBA questions.
- Since:
- 0.2.0
-
Field Summary
Fields inherited from class org.forgerock.selfservice.stages.kba.AbstractKbaStage
connectionFactory, cryptoService, REQUIREMENT_PROPERTY_ID, REQUIREMENT_PROPERTY_QUESTION, REQUIREMENT_PROPERTY_SYSTEM_QUESTION, REQUIREMENT_PROPERTY_USER_QUESTION -
Constructor Summary
ConstructorsConstructorDescriptionSecurityAnswerVerificationStage(ConnectionFactory connectionFactory, SecurityAnswerLockoutManager securityAnswerLockoutManager) Constructs a new security answer verification stage. -
Method Summary
Modifier and TypeMethodDescriptionadvance(ProcessContext context, SecurityAnswerVerificationConfig config) Advance the progress stage.gatherInitialRequirements(ProcessContext context, SecurityAnswerVerificationConfig config) Response for defining any initial requirements the stage may have.
-
Constructor Details
-
SecurityAnswerVerificationStage
@Inject public SecurityAnswerVerificationStage(ConnectionFactory connectionFactory, SecurityAnswerLockoutManager securityAnswerLockoutManager) Constructs a new security answer verification stage.- Parameters:
connectionFactory- the CREST connection factorysecurityAnswerLockoutManager- a handler for managing security answer lockout
-
-
Method Details
-
gatherInitialRequirements
public JsonValue gatherInitialRequirements(ProcessContext context, SecurityAnswerVerificationConfig config) throws ResourceException Description copied from interface:ProgressStageResponse for defining any initial requirements the stage may have.An empty json object implies no initial requirements.
- Parameters:
context- the current process contextconfig- the stage configuration- Returns:
- json value representing the requirements or empty json object for no requirements
- Throws:
ResourceException- if some expected state is invalid
-
advance
public StageResponse advance(ProcessContext context, SecurityAnswerVerificationConfig config) throws ResourceException Description copied from interface:ProgressStageAdvance the progress stage.- Parameters:
context- the current process contextconfig- the stage configuration- Returns:
- the result of invoking this stage
- Throws:
ResourceException- if some expected state or input is invalid
-