org.openpermis.xacml.io.v2
Class BasicXacmlWriter

java.lang.Object
  extended by org.openpermis.xacml.io.v2.BasicXacmlWriter
All Implemented Interfaces:
XacmlWriter

public class BasicXacmlWriter
extends Object
implements XacmlWriter

Basic implementation of a xacml writer.

Since:
0.4.0

Field Summary
static String XACML_CONTEXT_NAMESPACE
           
static String XACML_CONTEXT_SCHEMA_LOCATION
           
static String XACML_POLICY_NAMESPACE
           
 
Constructor Summary
BasicXacmlWriter()
          Creates a new basic response writer.
 
Method Summary
 String writeResponse(org.openpermis.policy.AccessDecision inputDecision, XacmlStatus inputStatus)
          Writes a permis access decision to an xacml response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XACML_CONTEXT_NAMESPACE

public static final String XACML_CONTEXT_NAMESPACE
Constant Field Value:
"urn:oasis:names:tc:xacml:2.0:context:schema:os"
Since:
0.4.0

XACML_POLICY_NAMESPACE

public static final String XACML_POLICY_NAMESPACE
Constant Field Value:
"urn:oasis:names:tc:xacml:2.0:policy:schema:os"
Since:
0.4.0

XACML_CONTEXT_SCHEMA_LOCATION

public static final String XACML_CONTEXT_SCHEMA_LOCATION
Constant Field Value:
"urn:oasis:names:tc:xacml:2.0:context:schema:os access_control-xacml-2.0-context-schema-os.xsd"
Since:
0.9.0
Constructor Detail

BasicXacmlWriter

public BasicXacmlWriter()
Creates a new basic response writer.

Since:
0.4.0
Method Detail

writeResponse

public String writeResponse(org.openpermis.policy.AccessDecision inputDecision,
                            XacmlStatus inputStatus)
Description copied from interface: XacmlWriter
Writes a permis access decision to an xacml response. If the decision is null an appropriate response is generated (Used to signal an exception).

Specified by:
writeResponse in interface XacmlWriter
Parameters:
inputDecision - the access decision, may be null.
inputStatus - the status, may be null.
Returns:
the xacml response.
Since:
0.4.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:56
Copyright (c) 2002-2007 Ergon Informatik AG