org.hardtokenmgmt.ws.server.statistics
Class Log4jStatisticsReporter
java.lang.Object
org.hardtokenmgmt.ws.server.statistics.Log4jStatisticsReporter
- All Implemented Interfaces:
- IStatisticsReporter
public class Log4jStatisticsReporter
- extends java.lang.Object
- implements IStatisticsReporter
Statistics Reporter that uses the log4j library
to report the events. Log4j should be configured
in the global configuration, just as a log4j.property
file.
The name of the logger configured in global settings
should be 'statisticsreporter'.
- Version:
- $Id$
- Author:
- Philip Vendil 27 jun 2009
|
Method Summary |
void |
reportEvent(java.lang.String adminId,
java.security.cert.X509Certificate adminCert,
java.lang.String orgId,
java.lang.String department,
java.lang.String userId,
java.lang.String eventType,
java.lang.String tokenType,
java.lang.String tokenSN,
java.security.cert.X509Certificate certificate,
java.lang.String comment)
Sends the event to the log4j configuration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Log4jStatisticsReporter
public Log4jStatisticsReporter()
reportEvent
public void reportEvent(java.lang.String adminId,
java.security.cert.X509Certificate adminCert,
java.lang.String orgId,
java.lang.String department,
java.lang.String userId,
java.lang.String eventType,
java.lang.String tokenType,
java.lang.String tokenSN,
java.security.cert.X509Certificate certificate,
java.lang.String comment)
throws java.io.IOException
- Sends the event to the log4j configuration.
- Specified by:
reportEvent in interface IStatisticsReporter
- Parameters:
adminId - unique id of administrator performing the event.adminCert - the certificate used to authenticate by teh admin.orgId - id of organization related to the event.department - the department related to the event, it's up to the implementation if this
should be supported or not.userId - unique id of related user.eventType - type of event, one of EVENT_ constants.tokenType - type of token, null if not applicable.tokenSN - serial number of token, null if not applicablecertificate - related certificate, null if not applicable.comment - related to the event. For revocation reports will the integer value of the reason be used.
- Throws:
java.io.IOException - if communication problems occurs to underlying systems.- See Also:
IStatisticsReporter.reportEvent(java.lang.String, java.security.cert.X509Certificate, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.security.cert.X509Certificate, java.lang.String)