Package com.tailf.dp
Enum Class AuthorizationResult
- All Implemented Interfaces:
Serializable
,Comparable<AuthorizationResult>
,Constable
Enum for returning authorization result from authorization callbacks
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationResult
getType
(int l) Get a DpAuthorizationResult for given int value or null if the int value does not represent a enum.int
getValue()
Get the int value representation of this authorization resultstatic AuthorizationResult
Returns the enum constant of this class with the specified name.static AuthorizationResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ACCEPT
The access is allowed. This is a "final verdict", analogous to a "full match" when the AAA rules are used. -
REJECT
The access is denied. -
CONTINUE
The access is allowed "so far". I.e. access to sub-elements is not necessarily allowed. This result is mainly useful when a checkCommandAccess() callback is called with operation == READ or a checkDataAccess() callback is called with how == INTERMEDIATE. -
DEFAULT
The request should be handled according to the rules configured in the AAA data model.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Get the int value representation of this authorization result- Returns:
- int value
-
getType
Get a DpAuthorizationResult for given int value or null if the int value does not represent a enum.- Parameters:
l
- int value for this enum- Returns:
- AuthorizationResult for this int value
-