org.glite.security.authz
Interface ServiceInterceptor

All Known Subinterfaces:
ServicePAP, ServicePDP, ServicePIP
All Known Implementing Classes:
BlackListServicePDP, GridMapServicePDP, ServiceAuthorizationChain, SimpleServicePDP, SimpleServicePIP, VomsServicePDP

public interface ServiceInterceptor

Generic interface to be implemented by all interceptors (PIPs and PDPs) in a chain.


Method Summary
 void close()
          this method is called by the PDP framework to indicate that the interceptor now should remove all state that was allocated in the initialize call.
 void initialize(ChainConfig config, java.lang.String name, java.lang.String id)
          initializes the interceptor with configuration information that are valid up until the point when close is called.
 

Method Detail

initialize

public void initialize(ChainConfig config,
                       java.lang.String name,
                       java.lang.String id)
                throws InitializeException
initializes the interceptor with configuration information that are valid up until the point when close is called.

Parameters:
config - holding interceptor specific configuration values, that may be obtained using the name paramter
name - the name that should be used to access all the interceptor local configuration
id - the id in common for all interceptors in a chain (it is valid up until close is called) if close is not called the interceptor may assume that the id still exists after a process restart
Throws:
InitializeException - if an exception occured during initialization

close

public void close()
           throws CloseException
this method is called by the PDP framework to indicate that the interceptor now should remove all state that was allocated in the initialize call.

Throws:
CloseException - if an error occured while closing this interceptor