org.aselect.server.log
Class ASelectAuthenticationLogger
java.lang.Object
org.aselect.system.logging.AuthenticationLogger
org.aselect.server.log.ASelectAuthenticationLogger
public class ASelectAuthenticationLogger
- extends AuthenticationLogger
The authentication logger for the A-Select Server.
Description:
A singleton authentication logger that inherits from
org.aselect.system.logging.AuthenticationLogger
. This logger creates a log file that can be used for user accounting.
Concurrency issues:
- The class is a singleton, so the same class is used in all the classes of
the A-Select Server.
- Author:
- Alfa & Ariss
Method Summary |
static ASelectAuthenticationLogger |
getHandle()
Must be used to get an ASelectAuthenticationLogger instance. |
void |
init(java.lang.Object oAuthLogging,
java.lang.String sWorkingDir)
Initializes the Authentication Logger. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getHandle
public static ASelectAuthenticationLogger getHandle()
- Must be used to get an ASelectAuthenticationLogger instance.
Description:
Creates a new ASelectAuthenticationLogger
instance if it's still null
.
Concurrency issues:
Always the same instance of the authentication logger is returned, because it's a
singleton.
Preconditions:
-
Postconditions:
-
- Returns:
- handle to the ASelectAuthenticationLogger
init
public void init(java.lang.Object oAuthLogging,
java.lang.String sWorkingDir)
throws ASelectException
- Initializes the Authentication Logger.
Description:
- Reads the 'target' config section
- Calls the init of the _oASelectAuthenticationLogger
- Reads the 'target' config section
Concurrency issues:
-
Preconditions:
- The ASelectSystemLogger must be initialized.
- The ASelectConfigManager must be initialized.
- The oAuthLogging may not be
NULL
.
- The sWorkingDir may not be
NULL
.
Postconditions:
An initialized _oASelectAuthenticationLogger.
- Parameters:
oAuthLogging
- The logger config section with id='authentication'sWorkingDir
- The A-Select working dir
- Throws:
ASelectException
- if initialization went wrong
Copyright © 2008 SURFnet BV. All Rights Reserved.