org.mmbase.security
Class Configurable

java.lang.Object
  extended by org.mmbase.security.Configurable
Direct Known Subclasses:
ActionRepository, Authentication, Authorization

public abstract class Configurable
extends Object

Both Authorization and Authentication are configurable. This class provides the shared functionality for that.

Since:
MMBase-1.7
Version:
$Id: Configurable.java 37071 2009-07-21 17:20:07Z michiel $
Author:
Eduard Witteveen, Michiel Meeuwissen

Field Summary
protected  String configResource
          This specific security configuration file.
protected  ResourceWatcher configWatcher
          This filewatcher checks the configuration file for changes.
protected  MMBaseCop manager
          The SecurityManager, which created this instance
 
Constructor Summary
Configurable()
           
 
Method Summary
protected abstract  void load()
          This method should be overridden by an extending class.
 void load(MMBaseCop manager, ResourceWatcher configWatcher, String configPath)
          The method which initialized an instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected MMBaseCop manager
The SecurityManager, which created this instance


configResource

protected String configResource
This specific security configuration file. The file is absolute. Might be null if the implementation does not have its own configuration file.

Since:
MMBase-1.8

configWatcher

protected ResourceWatcher configWatcher
This filewatcher checks the configuration file for changes.

Constructor Detail

Configurable

public Configurable()
Method Detail

load

public final void load(MMBaseCop manager,
                       ResourceWatcher configWatcher,
                       String configPath)
The method which initialized an instance of this class. This method cannot be overridden. This methods sets the member variables of this object and then calls the method load();

Parameters:
manager - The class that created this instance.
configWatcher - checks the files for changes
configPath - The url which contains the config information for the authorization (e.g. context/config.xml). Or null (if configured to be "")
See Also:
load()

load

protected abstract void load()
This method should be overridden by an extending class. It should further initialize the class. It can optionally retrieve settings from the general security configuration file (available as the 'configResource' member). Security implementations with complicated configuration would typically retrieve a path to their own configuration file only.



MMBase 2.0-SNAPSHOT - null