org.openpermis.xacml.io
Class XacmlStatus

java.lang.Object
  extended by org.openpermis.xacml.io.XacmlStatus

public class XacmlStatus
extends Object

Since:
0.4.0

Field Summary
private  String code
           
private  String message
           
static String MISSING_ATTRIBUTE
          Indicates that all the attributes necessary to make a policy decision were not available.
static String OK
          Indicates success.
static String PROCESSING_ERROR
          Indicates that an error occurred during policy evaluation.
static String STATUS
          Status header.
static String SYNTAX_ERROR
          Indicates that some attribute value contained a syntax error.
 
Constructor Summary
XacmlStatus(String code)
          Creates a new status with code.
XacmlStatus(String code, String message)
          Creates a new status with code and detailed message.
 
Method Summary
 String getCode()
          Returns the code.
 String getMessage()
          Returns the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS

public static final String STATUS
Status header.

Constant Field Value:
"urn:oasis:names:tc:xacml:1.0:status:"
Since:
0.4.0

OK

public static final String OK
Indicates success.

Constant Field Value:
"urn:oasis:names:tc:xacml:1.0:status:ok"
Since:
0.4.0

MISSING_ATTRIBUTE

public static final String MISSING_ATTRIBUTE
Indicates that all the attributes necessary to make a policy decision were not available.

Constant Field Value:
"urn:oasis:names:tc:xacml:1.0:status:missing-attribute"
Since:
0.4.0

SYNTAX_ERROR

public static final String SYNTAX_ERROR
Indicates that some attribute value contained a syntax error.

Constant Field Value:
"urn:oasis:names:tc:xacml:1.0:status:syntax-error"
Since:
0.4.0

PROCESSING_ERROR

public static final String PROCESSING_ERROR
Indicates that an error occurred during policy evaluation. An example would be division by zero.

Constant Field Value:
"urn:oasis:names:tc:xacml:1.0:status:processing-error"
Since:
0.4.0

code

private String code

message

private String message
Constructor Detail

XacmlStatus

public XacmlStatus(String code)
Creates a new status with code.

Parameters:
code - the status code.
Since:
0.4.0

XacmlStatus

public XacmlStatus(String code,
                   String message)
Creates a new status with code and detailed message.

Parameters:
code - the status code.
message - the status message.
Since:
0.4.0
Method Detail

getCode

public String getCode()
Returns the code.

Returns:
the code.
Since:
0.4.0

getMessage

public String getMessage()
Returns the message.

Returns:
the message.
Since:
0.4.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:45
Copyright (c) 2002-2007 Ergon Informatik AG