Enum Class UserMFA.Outcome
- All Implemented Interfaces:
Serializable, Comparable<UserMFA.Outcome>, Constable
- Enclosing class:
UserMFA
What became of a request.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe code was accepted, or the request was done.The account has a second factor already.The database or the server's keys failed; logged.The account waits after invalid codes; the code was not looked at.The code is not valid.The method is none this class does.No sign-in of the session is waiting for a code.The account has no second factor, or no enrolment is waiting.The code is valid and was accepted before: its time step, or a later one.Method Summary
Modifier and TypeMethodDescriptionstatic UserMFA.OutcomeReturns the enum constant of this class with the specified name.static UserMFA.Outcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
ACCEPTED
The code was accepted, or the request was done.INVALID
The code is not valid.REPLAYED
The code is valid and was accepted before: its time step, or a later one.HELD_BACK
The account waits after invalid codes; the code was not looked at.NOT_ENROLLED
The account has no second factor, or no enrolment is waiting.ALREADY_ENROLLED
The account has a second factor already.NO_PENDING
No sign-in of the session is waiting for a code.NO_METHOD
The method is none this class does.FAILED
The database or the server's keys failed; logged.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null