Package org.cyclos.model.access.devices
Enum InvalidDeviceConfirmationResult
- java.lang.Object
-
- java.lang.Enum<InvalidDeviceConfirmationResult>
-
- org.cyclos.model.access.devices.InvalidDeviceConfirmationResult
-
- All Implemented Interfaces:
Serializable,Comparable<InvalidDeviceConfirmationResult>
public enum InvalidDeviceConfirmationResult extends Enum<InvalidDeviceConfirmationResult>
Possible results for aInvalidDeviceConfirmationExceptionwhen checking a processed device confirmation or approving / rejecting a pending one.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_CONFIRMATIONWhen approving / rejecting / checking and the confirmation was not found or the input fields are not valid.INVALID_DEVICEWhen approving / rejecting a pending confirmation and the trusted device was not found.MAX_CHECK_ATTEMPTS_REACHEDWhen checking a processed and the maximum number of attempts to check for an approved confirmation was reached (the user was blocked).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InvalidDeviceConfirmationResultvalueOf(String name)Returns the enum constant of this type with the specified name.static InvalidDeviceConfirmationResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAX_CHECK_ATTEMPTS_REACHED
public static final InvalidDeviceConfirmationResult MAX_CHECK_ATTEMPTS_REACHED
When checking a processed and the maximum number of attempts to check for an approved confirmation was reached (the user was blocked).
-
INVALID_CONFIRMATION
public static final InvalidDeviceConfirmationResult INVALID_CONFIRMATION
When approving / rejecting / checking and the confirmation was not found or the input fields are not valid.
-
INVALID_DEVICE
public static final InvalidDeviceConfirmationResult INVALID_DEVICE
When approving / rejecting a pending confirmation and the trusted device was not found.
-
-
Method Detail
-
values
public static InvalidDeviceConfirmationResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InvalidDeviceConfirmationResult c : InvalidDeviceConfirmationResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InvalidDeviceConfirmationResult valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-