de.fzj.unicore.uas.security
Class SimplePDP

java.lang.Object
  extended by de.fzj.unicore.uas.security.SimplePDP
All Implemented Interfaces:
XacmlPDP

public class SimplePDP
extends java.lang.Object
implements XacmlPDP

simple PDP
uses SUN's XACML implementation (sunxacml.sourceforge.net) which is Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved.

Author:
schuller

Field Summary
 
Fields inherited from interface de.fzj.unicore.uas.security.XacmlPDP
XACML_CONFIGFILE
 
Constructor Summary
SimplePDP()
          Default constructor.
 
Method Summary
 com.sun.xacml.ctx.ResponseCtx evaluate(com.sun.xacml.ctx.RequestCtx request)
          Evaluates the given request and returns the Response that the PDP will hand back to the PEP.
protected  void load()
           
 
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.io.IOException
Default constructor. This creates a SimplePDP with a PDP based on the configuration defined by the system property com.sun.xcaml.PDPConfigFile in UAS, this is set to the property IUASSecurityProperties.UAS_CHECKACCESS_PDPCONFIG

Throws:
java.io.IOException
Method Detail

load

protected void load()
             throws AuthorisationException,
                    java.io.IOException
Throws:
AuthorisationException
java.io.IOException

evaluate

public com.sun.xacml.ctx.ResponseCtx evaluate(com.sun.xacml.ctx.RequestCtx request)
                                       throws AuthorisationException
Description copied from interface: XacmlPDP
Evaluates the given request and returns the Response that the PDP will hand back to the PEP.

Specified by:
evaluate in interface XacmlPDP
Parameters:
request - the Request
Returns:
the result of the evaluation
Throws:
AuthorisationException - if the Request is invalid or some other problem (e.g.IO error) occurs


Copyright © 2006-2010 Research Center Juelich. All Rights Reserved.