| java.lang.Object org.mmbase.security.Configurable org.mmbase.security.Authentication org.mmbase.security.classsecurity.ClassAuthenticationWrapper
ClassAuthenticationWrapper | public class ClassAuthenticationWrapper extends Authentication (Code) | | ClassAuthenticationWrapper wraps another Authentication implemention, and adds an extra
configuration file. In this configuration file the wrapped Authentication can be specified (and
its configuration file if it needs one). Besides that, also authentication credentials
can be linked to classes in this XML configuration file.
author: Michiel Meeuwissen version: $Id: ClassAuthenticationWrapper.java,v 1.7 2005/01/30 16:46:39 nico Exp $ since: MMBase-1.8 |
Method Summary | |
public boolean | isValid(UserContext userContext) | protected void | load() Reads the configuration file and instantiates and loads the wrapped Authentication. | protected UserContext | login(Map loginInfo, Object[] parameters) logs-in using the first match on the class from the configuration file.
Parameters: loginInfo - If there are possible credentials already, they can be in this map. | public UserContext | login(String application, Map loginInfo, Object[] parameters) |
load | protected void load() throws SecurityException(Code) | | Reads the configuration file and instantiates and loads the wrapped Authentication.
|
login | protected UserContext login(Map loginInfo, Object[] parameters) throws SecurityException(Code) | | logs-in using the first match on the class from the configuration file.
Parameters: loginInfo - If there are possible credentials already, they can be in this map. The newone will be added. If it is null, a new Map is instantiated. Parameters: parameters - Required by the login method of Authentication. I think noone ever uses it. |
|
|