magoffin.matt.ma2
Enum AuthorizationException.Reason

java.lang.Object
  extended by java.lang.Enum<AuthorizationException.Reason>
      extended by magoffin.matt.ma2.AuthorizationException.Reason
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AuthorizationException.Reason>
Enclosing class:
AuthorizationException

public static enum AuthorizationException.Reason
extends java.lang.Enum<AuthorizationException.Reason>

Authorization exception reason.


Enum Constant Summary
ACCESS_DENIED
          Access denied to something.
ANONYMOUS_ACCESS_DENIED
          Access for anonymous users denied.
BAD_PASSWORD
          Bad password.
DUPLICATE_EMAIL
          Duplicate email.
DUPLICATE_LOGIN
          Duplicate login.
FORGOTTEN_PASSWORD_NOT_CONFIRMED
          Forgotten password not confirmed.
REGISTRATION_ALREADY_CONFIRMED
          Registration already confirmed.
REGISTRATION_NOT_CONFIRMED
          Registration not confirmed.
UNKNOWN_LOGIN
          Unknown login.
 
Method Summary
static AuthorizationException.Reason valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AuthorizationException.Reason[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BAD_PASSWORD

public static final AuthorizationException.Reason BAD_PASSWORD
Bad password.


UNKNOWN_LOGIN

public static final AuthorizationException.Reason UNKNOWN_LOGIN
Unknown login.


DUPLICATE_LOGIN

public static final AuthorizationException.Reason DUPLICATE_LOGIN
Duplicate login.


DUPLICATE_EMAIL

public static final AuthorizationException.Reason DUPLICATE_EMAIL
Duplicate email.


REGISTRATION_NOT_CONFIRMED

public static final AuthorizationException.Reason REGISTRATION_NOT_CONFIRMED
Registration not confirmed.


REGISTRATION_ALREADY_CONFIRMED

public static final AuthorizationException.Reason REGISTRATION_ALREADY_CONFIRMED
Registration already confirmed.


FORGOTTEN_PASSWORD_NOT_CONFIRMED

public static final AuthorizationException.Reason FORGOTTEN_PASSWORD_NOT_CONFIRMED
Forgotten password not confirmed.


ACCESS_DENIED

public static final AuthorizationException.Reason ACCESS_DENIED
Access denied to something.


ANONYMOUS_ACCESS_DENIED

public static final AuthorizationException.Reason ANONYMOUS_ACCESS_DENIED
Access for anonymous users denied.

Method Detail

values

public static final AuthorizationException.Reason[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(AuthorizationException.Reason c : AuthorizationException.Reason.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static AuthorizationException.Reason valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name