| java.lang.Object org.mmbase.security.classsecurity.ClassAuthentication
ClassAuthentication | public class ClassAuthentication (Code) | | Provides the static utility methods to authenticate by class. Default a file
security/<classauthentication.xml> is used for this. If using the wrapper authentication,
its configuration file, contains this configuration.
author: Michiel Meeuwissen version: $Id: ClassAuthentication.java,v 1.17 2007/02/11 19:45:04 nklasens Exp $ See Also: ClassAuthenticationWrapper since: MMBase-1.8 |
Inner Class :public static class Login | |
Method Summary | |
public static Login | classCheck(String application) Checks wether the (indirectly) calling class is authenticated by the
ClassAuthenticationWrapper (using a stack trace). | protected static synchronized void | load(String configFile) Reads the configuration file and instantiates and loads the wrapped Authentication. | static void | stopWatching() Stop watchin the config file, if there is watched one. |
DTD_CLASSSECURITY_1_0 | final public static String DTD_CLASSSECURITY_1_0(Code) | | |
PUBLIC_ID_CLASSSECURITY_1_0 | final public static String PUBLIC_ID_CLASSSECURITY_1_0(Code) | | |
classCheck | public static Login classCheck(String application)(Code) | | Checks wether the (indirectly) calling class is authenticated by the
ClassAuthenticationWrapper (using a stack trace). This method can be called from an
Authentication implementation, e.g. to implement the 'class' application itself (if the
authentication implementation does understand the concept itself, then passwords can be
avoided in the wrappers' configuration file).
Parameters: application - Only checks this 'authentication application'. Can be null tocheck for every application. A Login object if yes, null if not. |
load | protected static synchronized void load(String configFile) throws SecurityException(Code) | | Reads the configuration file and instantiates and loads the wrapped Authentication.
|
stopWatching | static void stopWatching()(Code) | | Stop watchin the config file, if there is watched one. This is needed when security
configuration switched to ClassAuthenticationWrapper (which will not happen very often).
|
|
|