org.mmbase.security
Class Configurable

java.lang.Object
  extended byorg.mmbase.security.Configurable
Direct Known Subclasses:
Authentication, Authorization

public abstract class Configurable
extends java.lang.Object

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

Since:
MMBase-1.7
Version:
$Id: Configurable.java,v 1.7 2004/03/26 15:48:26 michiel Exp $
Author:
Eduard Witteveen, Michiel Meeuwissen

Field Summary
protected  java.io.File configFile
          This specific security configuration file.
protected  FileWatcher fileWatcher
          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 overrided by an extending class.
 void load(MMBaseCop manager, FileWatcher fileWatcher, java.lang.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


configFile

protected java.io.File configFile
This specific security configuration file. The file is absolute. Might be null if the implementation does not have its own configuruation file.


fileWatcher

protected FileWatcher fileWatcher
This filewatcher checks the configuration file for changes.

Constructor Detail

Configurable

public Configurable()
Method Detail

load

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

Parameters:
manager - The class that created this instance.
fileWatcher - checks the files
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(org.mmbase.security.MMBaseCop, org.mmbase.util.FileWatcher, java.lang.String)

load

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



MMBase build 1.7.4.20050922