org.openpermis.xacml.io.v2
Class BasicXacmlReader
java.lang.Object
org.openpermis.xacml.io.v2.BasicXacmlReader
- All Implemented Interfaces:
- XacmlReader
public class BasicXacmlReader
- extends Object
- implements XacmlReader
Basic implementation of a xacml reader.
- Since:
- 0.4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SUBJECT_ID
public static final String SUBJECT_ID
- Constant Field Value:
"urn:oasis:names:tc:xacml:1.0:subject:subject-id"
- Since:
- 0.4.0
ACTION_ID
public static final String ACTION_ID
- Constant Field Value:
"urn:oasis:names:tc:xacml:1.0:action:action-id"
- Since:
- 0.4.0
RESOURCE_ID
public static final String RESOURCE_ID
- Constant Field Value:
"urn:oasis:names:tc:xacml:1.0:resource:resource-id"
- Since:
- 0.4.0
STRING_TYPE
public static final String STRING_TYPE
- Constant Field Value:
"http://www.w3.org/2001/XMLSchema#string"
- Since:
- 0.4.0
URI_TYPE
public static final String URI_TYPE
- Constant Field Value:
"http://www.w3.org/2001/XMLSchema#anyURI"
- Since:
- 0.4.0
subjectExpression
private final org.jaxen.dom4j.Dom4jXPath subjectExpression
actionExpression
private final org.jaxen.dom4j.Dom4jXPath actionExpression
resourceExpression
private final org.jaxen.dom4j.Dom4jXPath resourceExpression
BasicXacmlReader
public BasicXacmlReader()
- Since:
- 0.4.0
executeExpression
private String executeExpression(org.dom4j.Document document,
org.jaxen.dom4j.Dom4jXPath expression)
throws XacmlException
- Executes a xpath expression on the document and return the result.
- Parameters:
document
- a Document
.expression
- a Dom4jXPath
.
- Throws:
XacmlException
- indicates that no result could be found.- Since:
- 0.4.0
readRequest
public XacmlRequest readRequest(Reader request)
throws XacmlException
- Description copied from interface:
XacmlReader
- Reads a request.
- Specified by:
readRequest
in interface XacmlReader
- Parameters:
request
- the xacml request.
- Throws:
XacmlException
- indicates a reading problem.- 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