public enum Requirement extends Enum<Requirement>
| Enum Constant and Description |
|---|
AUTHENTICATION |
GUEST |
PERMISSIONS |
ROLES |
USER |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
eval(RequirementConfiguration requirementConfig,
org.apache.shiro.subject.Subject subject) |
static Requirement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Requirement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Requirement USER
public static final Requirement AUTHENTICATION
public static final Requirement ROLES
public static final Requirement PERMISSIONS
public static final Requirement GUEST
public static Requirement[] values()
for (Requirement c : Requirement.values()) System.out.println(c);
public static Requirement valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected boolean eval(RequirementConfiguration requirementConfig, org.apache.shiro.subject.Subject subject)