public final class SecurityAnswerVerificationStage extends Object
Modifier and Type | Field and Description |
---|---|
protected ConnectionFactory |
connectionFactory |
protected CryptoService |
cryptoService |
protected static String |
REQUIREMENT_PROPERTY_ANSWER |
protected static String |
REQUIREMENT_PROPERTY_CUSTOM_QUESTION |
protected static String |
REQUIREMENT_PROPERTY_ID |
protected static String |
REQUIREMENT_PROPERTY_QUESTION |
protected static String |
REQUIREMENT_PROPERTY_QUESTION_ID |
protected static String |
REQUIREMENT_PROPERTY_SYSTEM_QUESTION |
protected static String |
REQUIREMENT_PROPERTY_USER_QUESTION |
Constructor and Description |
---|
SecurityAnswerVerificationStage(ConnectionFactory connectionFactory)
Constructs a new security answer verification stage.
|
Modifier and Type | Method and Description |
---|---|
StageResponse |
advance(ProcessContext context,
SecurityAnswerVerificationConfig config)
Advance the progress stage.
|
JsonValue |
gatherInitialRequirements(ProcessContext context,
SecurityAnswerVerificationConfig config)
Response for defining any initial requirements the stage may have.
|
protected static final String REQUIREMENT_PROPERTY_ANSWER
protected static final String REQUIREMENT_PROPERTY_ID
protected static final String REQUIREMENT_PROPERTY_QUESTION
protected static final String REQUIREMENT_PROPERTY_SYSTEM_QUESTION
protected static final String REQUIREMENT_PROPERTY_USER_QUESTION
protected static final String REQUIREMENT_PROPERTY_CUSTOM_QUESTION
protected static final String REQUIREMENT_PROPERTY_QUESTION_ID
protected final ConnectionFactory connectionFactory
protected final CryptoService cryptoService
@Inject public SecurityAnswerVerificationStage(ConnectionFactory connectionFactory)
connectionFactory
- the CREST connection factorypublic JsonValue gatherInitialRequirements(ProcessContext context, SecurityAnswerVerificationConfig 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, SecurityAnswerVerificationConfig config) throws ResourceException
ProgressStage
context
- the current process contextconfig
- the stage configurationResourceException
- if some expected state or input is invalidCopyright © 2010-2020, ForgeRock All Rights Reserved.