Class ResetStage
java.lang.Object
org.forgerock.selfservice.stages.reset.ResetStage
- All Implemented Interfaces:
ProgressStage<ResetStageConfig>
The reset password stage.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionResetStage(ConnectionFactory connectionFactory) Constructs a new reset stage. -
Method Summary
Modifier and TypeMethodDescriptionadvance(ProcessContext context, ResetStageConfig config) Advance the progress stage.gatherInitialRequirements(ProcessContext context, ResetStageConfig config) Response for defining any initial requirements the stage may have.
-
Constructor Details
-
ResetStage
Constructs a new reset stage.- Parameters:
connectionFactory- the CREST connection factory
-
-
Method Details
-
gatherInitialRequirements
public JsonValue gatherInitialRequirements(ProcessContext context, ResetStageConfig 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.
- Specified by:
gatherInitialRequirementsin interfaceProgressStage<ResetStageConfig>- 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, ResetStageConfig config) throws ResourceException Description copied from interface:ProgressStageAdvance the progress stage.- Specified by:
advancein interfaceProgressStage<ResetStageConfig>- 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
-