Enum XacmlStatusCode
- java.lang.Object
-
- java.lang.Enum<XacmlStatusCode>
-
- org.ow2.authzforce.xacml.identifiers.XacmlStatusCode
-
- All Implemented Interfaces:
Serializable
,Comparable<XacmlStatusCode>
public enum XacmlStatusCode extends Enum<XacmlStatusCode>
XACML Resource scopes, as defined in XACML v3.0 Multiple Decision Profile Version 1.0, ยง6.1. The actual value
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MISSING_ATTRIBUTE
Standard identifier for the Missing Attribute statusOK
Standard identifier for the OK statusPROCESSING_ERROR
Standard identifier for the Processing Error statusSYNTAX_ERROR
Standard identifier for the Syntax Error status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XacmlStatusCode
fromValue(String id)
Get constant from identifierString
value()
Get standard identifier (string), e.g.static XacmlStatusCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static XacmlStatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final XacmlStatusCode OK
Standard identifier for the OK status
-
MISSING_ATTRIBUTE
public static final XacmlStatusCode MISSING_ATTRIBUTE
Standard identifier for the Missing Attribute status
-
SYNTAX_ERROR
public static final XacmlStatusCode SYNTAX_ERROR
Standard identifier for the Syntax Error status
-
PROCESSING_ERROR
public static final XacmlStatusCode PROCESSING_ERROR
Standard identifier for the Processing Error status
-
-
Method Detail
-
values
public static XacmlStatusCode[] 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 (XacmlStatusCode c : XacmlStatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XacmlStatusCode 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
-
value
public String value()
Get standard identifier (string), e.g. ""urn:oasis:names:tc:xacml:1.0:status:ok"" forOK
- Returns:
- identifier
-
fromValue
public static XacmlStatusCode fromValue(String id)
Get constant from identifier- Parameters:
id
- identifier- Returns:
- status code enum
-
-