org.mmbase.security
Class Authentication
java.lang.Object
|
+--org.mmbase.security.Authentication
- Direct Known Subclasses:
- Authenticate, AuthenticationHandler, ContextAuthentication, NoAuthentication
- public abstract class Authentication
- extends java.lang.Object
This class is a empty implementation of the Authentication, it will only
return that the authentication succeeded.
To make your own implementation of
authorization, you have to extend this class.
- Version:
- $Id: Authentication.java,v 1.15 2002/07/01 12:58:15 michiel Exp $
- Author:
- Eduard Witteveen
|
Method Summary |
abstract boolean |
isValid(UserContext usercontext)
The method returns the Rank of a UserContext |
protected abstract void |
load()
This method could be overrided by an extending class. |
void |
load(MMBaseCop manager,
FileWatcher fileWatcher,
java.lang.String configPath)
The method which sets the settings of this class. |
abstract UserContext |
login(java.lang.String application,
java.util.Map loginInfo,
java.lang.Object[] parameters)
This method will verify the login, and give a UserContext back if everything
was valid |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
manager
protected MMBaseCop manager
- The SecurityManager, who created this instance
configFile
protected java.io.File configFile
- The absolute file which is the config file
fileWatcher
protected FileWatcher fileWatcher
- The file watcher
Authentication
public Authentication()
load
public final void load(MMBaseCop manager,
FileWatcher fileWatcher,
java.lang.String configPath)
- The method which sets the settings of this class. This method is
shouldn't be overrided.
This class will set the member variables of this class and then
call the member function load();
- Parameters:
manager - The class that created this instance.fileWatcher - checks the filesconfigPath - The url which contains the config information for the authorization (e.g. context/config.xml)
load
protected abstract void load()
- This method could be overrided by an extending class.
It should set the settings for this class, and when needed
retrieve them from the file at location configPath.
login
public abstract UserContext login(java.lang.String application,
java.util.Map loginInfo,
java.lang.Object[] parameters)
throws SecurityException
- This method will verify the login, and give a UserContext back if everything
was valid
- Parameters:
manager - The class that created this instance.configPath - The url which contains the config information for.
the authorization.parameters - a list of optional parameters, may also be null- Returns:
nullThrows:SecurityException - When something strang happend
isValid
public abstract boolean isValid(UserContext usercontext)
throws SecurityException
- The method returns the Rank of a UserContext
- Parameters:
usercontext - The UserContext of which we want to know the rights- Returns:
true when valid, otherwise false- Throws:
SecurityException - When something strang happend
MMBase build 1.6.5.20030923