org.wamblee.security.authentication
Enum UserMgtException.Reason

java.lang.Object
  extended by java.lang.Enum<UserMgtException.Reason>
      extended by org.wamblee.security.authentication.UserMgtException.Reason
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UserMgtException.Reason>
Enclosing class:
UserMgtException

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

Possible causes for the exception.


Enum Constant Summary
DUPLICATE_GROUP
           
DUPLICATE_USER
           
GROUP_STILL_OCCUPIED
           
INVALID_GROUPNAME
           
INVALID_PASSWORD
           
INVALID_USERNAME
           
UNKNOWN_GROUP
           
UNKNOWN_USER
           
USER_ALREADY_IN_GROUP
           
USER_MUST_BE_IN_A_GROUP
           
USER_NOT_IN_GROUP
           
 
Method Summary
static UserMgtException.Reason valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UserMgtException.Reason[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN_USER

public static final UserMgtException.Reason UNKNOWN_USER

UNKNOWN_GROUP

public static final UserMgtException.Reason UNKNOWN_GROUP

DUPLICATE_USER

public static final UserMgtException.Reason DUPLICATE_USER

DUPLICATE_GROUP

public static final UserMgtException.Reason DUPLICATE_GROUP

USER_ALREADY_IN_GROUP

public static final UserMgtException.Reason USER_ALREADY_IN_GROUP

USER_NOT_IN_GROUP

public static final UserMgtException.Reason USER_NOT_IN_GROUP

INVALID_PASSWORD

public static final UserMgtException.Reason INVALID_PASSWORD

GROUP_STILL_OCCUPIED

public static final UserMgtException.Reason GROUP_STILL_OCCUPIED

USER_MUST_BE_IN_A_GROUP

public static final UserMgtException.Reason USER_MUST_BE_IN_A_GROUP

INVALID_USERNAME

public static final UserMgtException.Reason INVALID_USERNAME

INVALID_GROUPNAME

public static final UserMgtException.Reason INVALID_GROUPNAME
Method Detail

values

public static UserMgtException.Reason[] 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 (UserMgtException.Reason c : UserMgtException.Reason.values())
    System.out.println(c);

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

valueOf

public static UserMgtException.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
java.lang.NullPointerException - if the argument is null


Copyright © 2022. All Rights Reserved.