org.glite.security.authz
Interface ChainConfig

All Known Implementing Classes:
SimpleChainConfig

public interface ChainConfig

This interface is used to encapsulate and shield the interceptor configuration mechanism from the core PDP framework. The configuration is associated with an interceptor between the initialize and close calls.

See Also:
ServiceInterceptor, ServicePIP, ServicePDP

Method Summary
 InterceptorConfig[] getInterceptors()
          gets the interceptors class names to be loaded, and their names (configuration scopes).
 java.lang.Object getProperty(java.lang.String name, java.lang.String property)
          gets a property based on the scoped name of the interceptor.
 void setProperty(java.lang.String name, java.lang.String property, java.lang.Object value)
          sets a property based on the scoped name of the interceptor.
 

Method Detail

getInterceptors

public InterceptorConfig[] getInterceptors()
                                    throws ConfigException
gets the interceptors class names to be loaded, and their names (configuration scopes).

Returns:
array of interceptor configurations
Throws:
ConfigException - if exception occured when retrieving interceptors from configuration

getProperty

public java.lang.Object getProperty(java.lang.String name,
                                    java.lang.String property)
gets a property based on the scoped name of the interceptor.

Parameters:
name - scoped name of interceptor
property - name of property to get
Returns:
the property or null if not found

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String property,
                        java.lang.Object value)
sets a property based on the scoped name of the interceptor.

Parameters:
name - scoped name of interceptor
property - name of property to set
value - value of property to set