Enum Class AuthorizationException.Reason
java.lang.Object
java.lang.Enum<AuthorizationException.Reason>
net.solarnetwork.central.security.AuthorizationException.Reason
- All Implemented Interfaces:
Serializable,Comparable<AuthorizationException.Reason>,Constable
- Enclosing class:
AuthorizationException
Authorization exception reason.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccess denied to something.Access for anonymous users denied.Bad password.Duplicate email.Forgotten password not confirmed.Registration already confirmed.Registration not confirmed.Unknown email.Access was requested to an unknown object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AuthorizationException.Reason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BAD_PASSWORD
Bad password. -
UNKNOWN_EMAIL
Unknown email. -
DUPLICATE_EMAIL
Duplicate email. -
REGISTRATION_NOT_CONFIRMED
Registration not confirmed. -
REGISTRATION_ALREADY_CONFIRMED
Registration already confirmed. -
FORGOTTEN_PASSWORD_NOT_CONFIRMED
Forgotten password not confirmed. -
ACCESS_DENIED
Access denied to something. -
ANONYMOUS_ACCESS_DENIED
Access for anonymous users denied. -
UNKNOWN_OBJECT
Access was requested to an unknown object.
-
-
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
-