Enum Constant and Description |
---|
ALL_ROLES
This mode authorizes all roles and groups where is the access role casted.
|
ALLOW_ALL
This is the mode for "disabling" authorization.
|
FIRST_ROLE
The authorization will stop after first successful (authorized) role.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
value
Mode value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
value()
Returns mode value.
|
static Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Mode.ALL_ROLES
.
This mode is used as default for authorization process.
Mode.FIRST_ROLE
, because each role must be checked for access permissions.Propagation.SUPPORTS
for (Mode c : Mode.values()) System.out.println(c);
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 null