Enum PolicyDecision
- java.lang.Object
-
- java.lang.Enum<PolicyDecision>
-
- org.technologybrewery.fermenter.stout.authz.PolicyDecision
-
- All Implemented Interfaces:
Serializable,Comparable<PolicyDecision>
public enum PolicyDecision extends Enum<PolicyDecision>
A library-egnostic view of possible policy decision values. These values map directly to the XACML 3.0 standard.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DENYINDETERMINATENOT_APPLICABLEPERMIT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PolicyDecisionvalueOf(String name)Returns the enum constant of this type with the specified name.static PolicyDecision[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERMIT
public static final PolicyDecision PERMIT
-
DENY
public static final PolicyDecision DENY
-
NOT_APPLICABLE
public static final PolicyDecision NOT_APPLICABLE
-
INDETERMINATE
public static final PolicyDecision INDETERMINATE
-
-
Method Detail
-
values
public static PolicyDecision[] 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 (PolicyDecision c : PolicyDecision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PolicyDecision valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-