Class ResetStage
- java.lang.Object
-
- org.forgerock.selfservice.stages.reset.ResetStage
-
- All Implemented Interfaces:
ProgressStage<ResetStageConfig>
public final class ResetStage extends Object implements ProgressStage<ResetStageConfig>
The reset password stage.- Since:
- 0.1.0
-
-
Constructor Summary
Constructors Constructor Description ResetStage(ConnectionFactory connectionFactory)
Constructs a new reset stage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StageResponse
advance(ProcessContext context, ResetStageConfig config)
Advance the progress stage.JsonValue
gatherInitialRequirements(ProcessContext context, ResetStageConfig config)
Response for defining any initial requirements the stage may have.
-
-
-
Constructor Detail
-
ResetStage
@Inject public ResetStage(ConnectionFactory connectionFactory)
Constructs a new reset stage.- Parameters:
connectionFactory
- the CREST connection factory
-
-
Method Detail
-
gatherInitialRequirements
public JsonValue gatherInitialRequirements(ProcessContext context, ResetStageConfig config) throws ResourceException
Description copied from interface:ProgressStage
Response for defining any initial requirements the stage may have.An empty json object implies no initial requirements.
- Specified by:
gatherInitialRequirements
in 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:ProgressStage
Advance the progress stage.- Specified by:
advance
in 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
-
-