org.mmbase.security.implementation.basic
Class AuthenticationHandler

java.lang.Object
  |
  +--org.mmbase.security.Authentication
        |
        +--org.mmbase.security.implementation.basic.AuthenticationHandler

public class AuthenticationHandler
extends Authentication

Authentication based on a config file..


Fields inherited from class org.mmbase.security.Authentication
configFile, fileWatcher, manager
 
Constructor Summary
AuthenticationHandler()
           
 
Method Summary
 boolean isValid(UserContext usercontext)
          this method does nothing..
protected  void load()
          This method could be overrided by an extending class.
 UserContext login(java.lang.String moduleName, java.util.HashMap loginInfo, java.lang.Object[] parameters)
          The method which sets the settings of this class.
 
Methods inherited from class org.mmbase.security.Authentication
load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationHandler

public AuthenticationHandler()
Method Detail

load

protected void load()
Description copied from class: Authentication
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.
Overrides:
load in class Authentication

login

public UserContext login(java.lang.String moduleName,
                         java.util.HashMap loginInfo,
                         java.lang.Object[] parameters)
                  throws SecurityException
Description copied from class: Authentication
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();
Overrides:
login in class Authentication
Following copied from class: org.mmbase.security.Authentication
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 boolean isValid(UserContext usercontext)
                throws SecurityException
this method does nothing..
Overrides:
isValid in class Authentication
Following copied from class: org.mmbase.security.Authentication
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 2001