issrg.gt4Plus.pdp
Class XacmlPDP

java.lang.Object
  extended by issrg.gt4Plus.pdp.XacmlPDP

public class XacmlPDP
extends java.lang.Object

Author:
Linying Su

Constructor Summary
XacmlPDP()
          Creates a new instance of XacmlPDP
 
Method Summary
 Decision canAccess(RequestEntities requestEntities, NonRequestEntities nonReqEntities)
          this method is used to decide whether the requestor can access the resource.
 Decision canAdminister(RequestEntities requestEntities, NonRequestEntities nonReqEntities)
           
 void close()
           
 java.util.HashSet getAction(org.w3c.dom.NodeList list)
          this method is used to get a set of Attribute objects from a given list.
 org.w3c.dom.Element getAttributes()
          this method is used to get all of the coordination attributes in the policy.
 java.util.HashSet getEnvironment(org.w3c.dom.NodeList list)
          this method is used to get a set of Attribute objects from a given list.
 java.util.HashSet getResource(org.w3c.dom.NodeList list)
          this method is used to get a set of Attribute objects from a given list.
 org.w3c.dom.Element getResponse()
          return the response of a decision making.
 java.util.HashSet getSubject(org.w3c.dom.NodeList list)
          this method is used to get a set of com.sun.xacml.ctx.Subject objects from a given list.
 void initialize(java.lang.String chainName, java.lang.String prefix, ChainConfig config)
          this method is used to initialise the Xacml PDP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XacmlPDP

public XacmlPDP()
Creates a new instance of XacmlPDP

Method Detail

canAccess

public Decision canAccess(RequestEntities requestEntities,
                          NonRequestEntities nonReqEntities)
                   throws AuthorizationException
this method is used to decide whether the requestor can access the resource.

Parameters:
requestEntities - represents the request attributes.
nonReqEntities - represents none request attributes.
Returns:
a Decision object
Throws:
AuthorizationException

canAdminister

public Decision canAdminister(RequestEntities requestEntities,
                              NonRequestEntities nonReqEntities)
                       throws AuthorizationException
Throws:
AuthorizationException

initialize

public void initialize(java.lang.String chainName,
                       java.lang.String prefix,
                       ChainConfig config)
                throws InitializeException
this method is used to initialise the Xacml PDP.

Parameters:
chainName - denotes the service name, which is protected by the PDP.
prefix - denotes the scope of the Xacml PDP.
config - passes the properties which are configured in the security descriptor
Throws:
InitializeException

close

public void close()
           throws CloseException
Throws:
CloseException

getSubject

public java.util.HashSet getSubject(org.w3c.dom.NodeList list)
                             throws AuthorizationException
this method is used to get a set of com.sun.xacml.ctx.Subject objects from a given list. this list contains a set of XACML subject attributes.

Parameters:
list - is the given list.
Returns:
a set of com.sun.xacml.ctx.Subject objects.
Throws:
AuthorizationException

getResource

public java.util.HashSet getResource(org.w3c.dom.NodeList list)
                              throws AuthorizationException
this method is used to get a set of Attribute objects from a given list. this list contains a set of XACML resource attributes.

Parameters:
list - is the given list.
Returns:
a set of Attribute objects.
Throws:
AuthorizationException

getAction

public java.util.HashSet getAction(org.w3c.dom.NodeList list)
                            throws AuthorizationException
this method is used to get a set of Attribute objects from a given list. this list contains a set of XACML action attributes.

Parameters:
list - is the given list.
Returns:
a set of Attribute objects.
Throws:
AuthorizationException

getEnvironment

public java.util.HashSet getEnvironment(org.w3c.dom.NodeList list)
                                 throws AuthorizationException
this method is used to get a set of Attribute objects from a given list. this list contains a set of XACML environment attributes.

Parameters:
list - is the given list.
Returns:
a set of Attribute objects.
Throws:
AuthorizationException

getResponse

public org.w3c.dom.Element getResponse()
return the response of a decision making.


getAttributes

public org.w3c.dom.Element getAttributes()
                                  throws InitializeException
this method is used to get all of the coordination attributes in the policy.

Returns:
an Element object, which contains all of the attributes in the format of <Attributes> <Attribute AttributeId=<attribute name>, DataType=<xacml data type>, Type="Subject/Resource/Action/Environment"> </Attributes>
Throws:
InitializeException