org.example.azapi.constants
Enum AzDecision

java.lang.Object
  extended by java.lang.Enum<AzDecision>
      extended by org.example.azapi.constants.AzDecision
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AzDecision>

public enum AzDecision
extends java.lang.Enum<AzDecision>

AzDecision enum values correspond to the values defined in XACML 2.0 Section 6.11: (http://docs.oasis-open.org/xacml/2.0/access_control-xacml-2.0-core-spec-os.pdf)


Enum Constant Summary
AZ_DENY
          “Deny": the requested access is denied.
AZ_INDETERMINATE
          "Indeterminate": the PDP is unable to evaluate the requested access.
AZ_NOTAPPLICABLE
          "NotApplicable": the PDP does not have any policy that applies to this decision request.
AZ_PERMIT
          "Permit": the requested access is permitted.
 
Method Summary
static AzDecision valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AzDecision[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AZ_PERMIT

public static final AzDecision AZ_PERMIT
"Permit": the requested access is permitted.


AZ_DENY

public static final AzDecision AZ_DENY
“Deny": the requested access is denied.


AZ_INDETERMINATE

public static final AzDecision AZ_INDETERMINATE
"Indeterminate": the PDP is unable to evaluate the requested access. Reasons for such inability include: missing attributes, network errors while retrieving policies, division by zero during policy evaluation, syntax errors in the decision request or in the policy, etc. The most "interesting" of these is MissingAttributes, which returns information that the caller can take action on to submit another request if that is appropriate or desired.


AZ_NOTAPPLICABLE

public static final AzDecision AZ_NOTAPPLICABLE
"NotApplicable": the PDP does not have any policy that applies to this decision request. In general, Xacml Policies and Rules have a Target element that is used to determine if the Policy or Rule should be applied to the Request. If not, then the Target result causes the Policy or Rule to evaluate to NotApplicable. After all Policy evaluation is complete, if result is NotApplicable, then that is Decision value that is returned.

Method Detail

values

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

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

valueOf

public static AzDecision 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