org.mmbase.security.classsecurity
Class ClassAuthentication
java.lang.Object
org.mmbase.security.classsecurity.ClassAuthentication
- public class ClassAuthentication
- extends Object
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.
- Since:
- MMBase-1.8
- Version:
- $Id: ClassAuthentication.java,v 1.13 2006/07/14 08:16:49 michiel Exp $
- Author:
- Michiel Meeuwissen
- See Also:
ClassAuthenticationWrapper
|
Method Summary |
static ClassAuthentication.Login |
classCheck(String application)
Checks wether the (indirectly) calling class is authenticated by the
ClassAuthenticationWrapper (using a stack trace). |
protected static void |
load(String configFile)
Reads the configuration file and instantiates and loads the wrapped Authentication. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PUBLIC_ID_CLASSSECURITY_1_0
public static final String PUBLIC_ID_CLASSSECURITY_1_0
- See Also:
- Constant Field Values
DTD_CLASSSECURITY_1_0
public static final String DTD_CLASSSECURITY_1_0
- See Also:
- Constant Field Values
load
protected static void load(String configFile)
throws SecurityException
- Reads the configuration file and instantiates and loads the wrapped Authentication.
- Throws:
SecurityException
classCheck
public static ClassAuthentication.Login classCheck(String application)
- 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 to
check for every application.
- Returns:
- A Login object if yes,
null if not.
MMBase build 1.8.1.20060716