public final class SecurityAnswerDefinitionStage extends AbstractKbaStage<SecurityAnswerDefinitionConfig>
connectionFactory, cryptoService, REQUIREMENT_PROPERTY_ID, REQUIREMENT_PROPERTY_QUESTION, REQUIREMENT_PROPERTY_SYSTEM_QUESTION, REQUIREMENT_PROPERTY_USER_QUESTION
Constructor and Description |
---|
SecurityAnswerDefinitionStage(ConnectionFactory connectionFactory,
SecurityAnswer securityAnswer)
Constructs a new security answer definition stage.
|
Modifier and Type | Method and Description |
---|---|
StageResponse |
advance(ProcessContext context,
SecurityAnswerDefinitionConfig config)
Advance the progress stage.
|
JsonValue |
gatherInitialRequirements(ProcessContext context,
SecurityAnswerDefinitionConfig config)
Response for defining any initial requirements the stage may have.
|
@Inject public SecurityAnswerDefinitionStage(ConnectionFactory connectionFactory, SecurityAnswer securityAnswer)
connectionFactory
- the CREST connection factorysecurityAnswer
- the helper class for security answerspublic JsonValue gatherInitialRequirements(ProcessContext context, SecurityAnswerDefinitionConfig config) throws ResourceException
ProgressStage
An empty json object implies no initial requirements.
context
- the current process contextconfig
- the stage configurationResourceException
- if some expected state is invalidpublic StageResponse advance(ProcessContext context, SecurityAnswerDefinitionConfig config) throws ResourceException
ProgressStage
context
- the current process contextconfig
- the stage configurationResourceException
- if some expected state or input is invalidCopyright © 2010-2018, ForgeRock All Rights Reserved.