org.mmbase.security
Class NoAuthentication
java.lang.Object
org.mmbase.security.Configurable
org.mmbase.security.Authentication
org.mmbase.security.NoAuthentication
- public final class NoAuthentication
- extends Authentication
This class is used when no authentication is configured. Every credential is rewarded with a
UserContext object. So every attempt to log in will succeed.
- Version:
- $Id: NoAuthentication.java,v 1.7 2003/11/26 20:50:49 michiel Exp $
- Author:
- Eduard Witteveen
- See Also:
UserContext
|
Method Summary |
boolean |
isValid(UserContext usercontext)
Users remain valid always. |
protected void |
load()
This method does nothing |
UserContext |
login(java.lang.String application,
java.util.Map loginInfo,
java.lang.Object[] parameters)
Returns always the same object (an user 'anonymous'with rank 'administrator'') |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoAuthentication
public NoAuthentication()
load
protected void load()
- This method does nothing
- Specified by:
load in class Configurable
login
public UserContext login(java.lang.String application,
java.util.Map loginInfo,
java.lang.Object[] parameters)
throws SecurityException
- Returns always the same object (an user 'anonymous'with rank 'administrator'')
- Specified by:
login in class Authentication
- Parameters:
application - A String that further specifies the login method (one implementation could handle more then one methods)
A typical value might be 'username/password'.loginInfo - A Map containing the credentials or other objects which might be used to obtain them (e.g. request/response objects).
It might also be 'null', in which case your implementation normally should return the 'anonymous' user (or null, if
no such user can be defined).parameters - A list of optional parameters, may also (and will often) be null.
- Returns:
nullThrows:
SecurityException - When something strang happened- See Also:
UserContext
isValid
public boolean isValid(UserContext usercontext)
throws SecurityException
- Users remain valid always.
- Specified by:
isValid in class Authentication
- Parameters:
usercontext - The UserContext of which we want to know the rights
- Returns:
- true
- Throws:
SecurityException - When something strang happend
MMBase build 1.7.1.20041002