org.glite.security.authz
Interface ServicePAP

All Superinterfaces:
ServiceInterceptor
All Known Implementing Classes:
ServiceAuthorizationChain, SimpleServicePDP

public interface ServicePAP
extends ServiceInterceptor

Interface that must be implemented by all PAPs in an interceptor chain A PAP is responsible for setting and retrieving policies to clients (typically services or PEPs) ServiceInterceptor through the id parameter.

See Also:
ServiceAuthorizationChain, ServicePIP, ServicePDP

Method Summary
 java.util.Collection getPolicy(org.w3c.dom.Node query)
          gets the current policy of the PDP.
 java.lang.String[] getPolicyNames()
          gets the names (typically uris) of all the policies that the PDP supports.
 java.util.Collection setPolicy(org.w3c.dom.Node policy)
          sets the current policy of the PDP.
 
Methods inherited from interface org.glite.security.authz.ServiceInterceptor
close, initialize
 

Method Detail

getPolicyNames

public java.lang.String[] getPolicyNames()
gets the names (typically uris) of all the policies that the PDP supports.

Returns:
array of policy names

getPolicy

public java.util.Collection getPolicy(org.w3c.dom.Node query)
                               throws InvalidPolicyException
gets the current policy of the PDP.

Parameters:
query - may be used to query for a subset of a policy
Returns:
a collection of Nodes (the policy)
Throws:
InvalidPolicyException - if an invalid policy was detected

setPolicy

public java.util.Collection setPolicy(org.w3c.dom.Node policy)
                               throws InvalidPolicyException
sets the current policy of the PDP.

Parameters:
policy - new policy
Returns:
optional collection of Nodes (set policy result)
Throws:
InvalidPolicyException - if an invalid policy was passed in