org.glite.security.authz
Class SimpleChainConfig

java.lang.Object
  extended byorg.glite.security.authz.SimpleChainConfig
All Implemented Interfaces:
ChainConfig

public class SimpleChainConfig
extends java.lang.Object
implements ChainConfig

Simple ChainConfig implementation allowing configuration properties to be set at runtime.

See Also:
ChainConfig

Constructor Summary
SimpleChainConfig(InterceptorConfig[] newInterceptors)
          Constructor.
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleChainConfig

public SimpleChainConfig(InterceptorConfig[] newInterceptors)
Constructor.

Parameters:
newInterceptors - new interceptor configuration
Method Detail

getInterceptors

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

Specified by:
getInterceptors in interface ChainConfig
Returns:
array of interceptor configurations
Throws:
ConfigException - if no interceptors were found

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.

Specified by:
getProperty in interface ChainConfig
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.

Specified by:
setProperty in interface ChainConfig
Parameters:
name - scoped name of interceptor
property - name of property to set
value - value of property to set