issrg.gt4
Class XacmlPDP

java.lang.Object
  extended by issrg.gt4.XacmlPDP

public class XacmlPDP
extends java.lang.Object

Author:
ls97

Constructor Summary
XacmlPDP()
          Creates a new instance of NewClass
 
Method Summary
 void close()
          The standard PDP method; deinitialises the PDP.
 ResponseCtx evaluate(javax.security.auth.Subject peerSubject, java.lang.String operation)
           
 java.util.HashSet getAction(org.w3c.dom.NodeList list)
           
 org.w3c.dom.Element getAttributes()
           
 java.util.HashSet getEnvironment(org.w3c.dom.NodeList list)
           
 org.w3c.dom.Node getPolicy(org.w3c.dom.Node query)
           
 java.lang.String[] getPolicyNames()
           
 java.util.HashSet getResource(org.w3c.dom.NodeList list)
           
 org.w3c.dom.Element getResponse()
           
 java.util.HashSet getSubject(org.w3c.dom.NodeList list)
           
 void initialize(PDPConfig config, java.lang.String name, java.lang.String id)
           
 boolean isPermitted(javax.security.auth.Subject peerSubject, MessageContext context, javax.xml.namespace.QName operation)
           
 org.w3c.dom.Node setPolicy(org.w3c.dom.Node policy)
          The standard PDP method; returns null, since the behaviour was not defined by GT4 at the time of writing.
 
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 NewClass

Method Detail

initialize

public void initialize(PDPConfig config,
                       java.lang.String name,
                       java.lang.String id)
                throws InitializeException
Throws:
InitializeException

isPermitted

public boolean isPermitted(javax.security.auth.Subject peerSubject,
                           MessageContext context,
                           javax.xml.namespace.QName operation)
                    throws AuthorizationException
Throws:
AuthorizationException

getSubject

public java.util.HashSet getSubject(org.w3c.dom.NodeList list)
                             throws AuthorizationException
Throws:
AuthorizationException

getResource

public java.util.HashSet getResource(org.w3c.dom.NodeList list)
                              throws AuthorizationException
Throws:
AuthorizationException

getAction

public java.util.HashSet getAction(org.w3c.dom.NodeList list)
                            throws AuthorizationException
Throws:
AuthorizationException

getEnvironment

public java.util.HashSet getEnvironment(org.w3c.dom.NodeList list)
                                 throws AuthorizationException
Throws:
AuthorizationException

getResponse

public org.w3c.dom.Element getResponse()

getPolicyNames

public java.lang.String[] getPolicyNames()

getPolicy

public org.w3c.dom.Node getPolicy(org.w3c.dom.Node query)
                           throws InvalidPolicyException
Throws:
InvalidPolicyException

setPolicy

public org.w3c.dom.Node setPolicy(org.w3c.dom.Node policy)
                           throws InvalidPolicyException
The standard PDP method; returns null, since the behaviour was not defined by GT4 at the time of writing.

Throws:
InvalidPolicyException

close

public void close()
The standard PDP method; deinitialises the PDP.


getAttributes

public org.w3c.dom.Element getAttributes()
                                  throws InitializeException
Throws:
InitializeException

evaluate

public ResponseCtx evaluate(javax.security.auth.Subject peerSubject,
                            java.lang.String operation)
                     throws java.io.IOException,
                            ParsingException,
                            java.net.URISyntaxException,
                            java.lang.Exception
Throws:
java.io.IOException
ParsingException
java.net.URISyntaxException
java.lang.Exception