issrg.xacml
Class SimplePDP

java.lang.Object
  extended by issrg.xacml.SimplePDP

public class SimplePDP
extends java.lang.Object

Author:
ls97

Constructor Summary
SimplePDP()
          Creates a new instance of SimplePDP
SimplePDP(java.lang.String[] files)
          Creates a new instance of SimplePDP with policy files
 
Method Summary
 ResponseCtx evaluate(java.lang.String requestFile)
          This method makes an authorisation decision based on the request contest, which is represented as a file
 PermisRBAC getPDP()
          This method returns the constructed PermisRBAC (PDP)
 ResponseCtx getResponseCtxFrom(org.w3c.dom.Element decision)
          This method returns an XACML ResponseCtx object from an XML representation for a decision making
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePDP

public SimplePDP()
          throws java.lang.Exception
Creates a new instance of SimplePDP

Throws:
java.lang.Exception

SimplePDP

public SimplePDP(java.lang.String[] files)
          throws java.lang.Exception
Creates a new instance of SimplePDP with policy files

Parameters:
files - is an array of file names, the first file must be a Permis configuration file
Throws:
java.lang.Exception
Method Detail

evaluate

public ResponseCtx evaluate(java.lang.String requestFile)
                     throws java.lang.Exception
This method makes an authorisation decision based on the request contest, which is represented as a file

Parameters:
requestFile - is a file name
Returns:
An XACML ResponseCtx object, which represents the decision result
Throws:
java.lang.Exception

getPDP

public PermisRBAC getPDP()
This method returns the constructed PermisRBAC (PDP)


getResponseCtxFrom

public ResponseCtx getResponseCtxFrom(org.w3c.dom.Element decision)
                               throws java.lang.Exception
This method returns an XACML ResponseCtx object from an XML representation for a decision making

Parameters:
decision, - which is an XML representation of the decision making
Returns:
the XACML ResponseCtx object
Throws:
java.lang.Exception