public enum AuthorizationType extends java.lang.Enum<AuthorizationType> implements Type
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getTypeClass()
Gets the type class.
|
java.lang.String |
toKey()
Returns the key of this type as string.
|
static AuthorizationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthorizationType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final AuthorizationType ROLE
public static final AuthorizationType USER
public java.lang.Class<?> getTypeClass()
Type
getTypeClass
in interface Type
public java.lang.String toKey()
Type
public static AuthorizationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static AuthorizationType[] values()
for (AuthorizationType c : AuthorizationType.values()) System.out.println(c);