|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.xacml.io.v2.BasicXacmlWriter
public class BasicXacmlWriter
Basic implementation of a xacml writer.
Field Summary | |
---|---|
static String |
XACML_CONTEXT_NAMESPACE
|
static String |
XACML_POLICY_NAMESPACE
|
Constructor Summary | |
---|---|
BasicXacmlWriter()
Creates a new basic response writer. |
Method Summary | |
---|---|
private void |
addDecision(org.dom4j.Element parent,
org.openpermis.policy.AccessDecision inputDecision)
Adds the input decision to the parent. |
private void |
addObligations(org.dom4j.Element parent,
org.openpermis.policy.AccessDecision inputDecision)
Adds the obligations of the input decision to the parent. |
private void |
addStatus(org.dom4j.Element parent,
XacmlStatus inputStatus)
Adds the status to the parent. |
private String |
formatXml(org.dom4j.Document document)
Formats the document. |
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 |
---|
public static final String XACML_CONTEXT_NAMESPACE
"urn:oasis:names:tc:xacml:2.0:context:schema:os"
public static final String XACML_POLICY_NAMESPACE
"urn:oasis:names:tc:xacml:2.0:policy:schema:os"
Constructor Detail |
---|
public BasicXacmlWriter()
Method Detail |
---|
private String formatXml(org.dom4j.Document document) throws IOException
document
- the document to format.
String
.
IOException
private void addDecision(org.dom4j.Element parent, org.openpermis.policy.AccessDecision inputDecision)
parent
- the parent element.inputDecision
- an AccessDecision
.private void addObligations(org.dom4j.Element parent, org.openpermis.policy.AccessDecision inputDecision)
parent
- the parent element.inputDecision
- an AccessDecision
.private void addStatus(org.dom4j.Element parent, XacmlStatus inputStatus)
parent
- the parent element.inputStatus
- a XacmlStatus
.public String writeResponse(org.openpermis.policy.AccessDecision inputDecision, XacmlStatus inputStatus)
XacmlWriter
null
an
appropriate response is generated (Used to signal an exception).
writeResponse
in interface XacmlWriter
inputDecision
- the access decision, may be null.inputStatus
- the status, may be null.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:45
Copyright (c) 2002-2007 Ergon Informatik AG