public final class VerifyEmailAccountStage extends Object implements ProgressStage<VerifyEmailAccountConfig>
Constructor and Description |
---|
VerifyEmailAccountStage(ConnectionFactory connectionFactory,
EmailVerificationWhitelist whitelist,
ExecutorService executorService)
Constructs a new stage.
|
Modifier and Type | Method and Description |
---|---|
StageResponse |
advance(ProcessContext context,
VerifyEmailAccountConfig config)
Advance the progress stage.
|
JsonValue |
gatherInitialRequirements(ProcessContext context,
VerifyEmailAccountConfig config)
Response for defining any initial requirements the stage may have.
|
@Inject public VerifyEmailAccountStage(ConnectionFactory connectionFactory, EmailVerificationWhitelist whitelist, ExecutorService executorService)
connectionFactory
- the CREST connection factorywhitelist
- an EmailVerificationWhitelist strategyexecutorService
- an executor for asynchronous email sendingpublic JsonValue gatherInitialRequirements(ProcessContext context, VerifyEmailAccountConfig config) throws BadRequestException
ProgressStage
An empty json object implies no initial requirements.
gatherInitialRequirements
in interface ProgressStage<VerifyEmailAccountConfig>
context
- the current process contextconfig
- the stage configurationBadRequestException
public StageResponse advance(ProcessContext context, VerifyEmailAccountConfig config) throws ResourceException
ProgressStage
advance
in interface ProgressStage<VerifyEmailAccountConfig>
context
- the current process contextconfig
- the stage configurationResourceException
- if some expected state or input is invalidCopyright © 2010-2020, ForgeRock All Rights Reserved.