org.globus.gridshib
Class BasePDP

java.lang.Object
  extended by org.globus.gridshib.BasePDP
All Implemented Interfaces:
Serializable, Interceptor, PDP
Direct Known Subclasses:
GridShibPDP, GridShibPullPDP, GridShibPushPDP, SAMLAttributePDP, SAMLBlacklistPDP

public abstract class BasePDP
extends Object
implements PDP

GT4.0.x compatible proxy to the GridShib authorization code. This is for the master PDP, typically the only configured interceptor.

See Also:
PDP, Serialized Form

Field Summary
protected  String scope
           
protected  String serviceId
           
 
Constructor Summary
BasePDP()
           
 
Method Summary
 void close()
           
 Node getPolicy(Node node)
           
 String[] getPolicyNames()
           
 void initialize(PDPConfig config, String name, String id)
           
 boolean isPermitted(Subject peer, javax.xml.rpc.handler.MessageContext context, javax.xml.namespace.QName op)
           
protected abstract  PDP pdpImpl()
           
 Node setPolicy(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scope

protected String scope

serviceId

protected String serviceId
Constructor Detail

BasePDP

public BasePDP()
Method Detail

pdpImpl

protected abstract PDP pdpImpl()

initialize

public void initialize(PDPConfig config,
                       String name,
                       String id)
                throws org.globus.wsrf.impl.security.authorization.exceptions.InitializeException
Specified by:
initialize in interface Interceptor
Throws:
org.globus.wsrf.impl.security.authorization.exceptions.InitializeException

isPermitted

public boolean isPermitted(Subject peer,
                           javax.xml.rpc.handler.MessageContext context,
                           javax.xml.namespace.QName op)
                    throws org.globus.wsrf.impl.security.authorization.exceptions.AuthorizationException
Specified by:
isPermitted in interface PDP
Returns:
true if and only if the implementation returns PDPDecision.PERMIT
Throws:
org.globus.wsrf.impl.security.authorization.exceptions.AuthorizationException

getPolicyNames

public String[] getPolicyNames()
Specified by:
getPolicyNames in interface PDP

getPolicy

public Node getPolicy(Node node)
               throws org.globus.wsrf.impl.security.authorization.exceptions.InvalidPolicyException
Specified by:
getPolicy in interface PDP
Throws:
org.globus.wsrf.impl.security.authorization.exceptions.InvalidPolicyException

setPolicy

public Node setPolicy(Node node)
               throws org.globus.wsrf.impl.security.authorization.exceptions.InvalidPolicyException
Specified by:
setPolicy in interface PDP
Throws:
org.globus.wsrf.impl.security.authorization.exceptions.InvalidPolicyException

close

public void close()
           throws org.globus.wsrf.impl.security.authorization.exceptions.CloseException
Specified by:
close in interface Interceptor
Throws:
org.globus.wsrf.impl.security.authorization.exceptions.CloseException


Copyright © 2007-2008 University of Illinois. All Rights Reserved.