org.hardtokenmgmt.ws.server.statistics
Class StatisticsHelper

java.lang.Object
  extended by org.hardtokenmgmt.ws.server.statistics.StatisticsHelper

public class StatisticsHelper
extends java.lang.Object

Class containing help methods for generating statistics.

Version:
$Id$
Author:
Philip Vendil 19 jun 2009

Constructor Summary
StatisticsHelper()
           
 
Method Summary
static void reportPukViewed(org.ejbca.core.model.log.Admin admin, java.lang.String hardTokenSN, org.ejbca.core.model.ra.UserDataVO userdata, java.lang.String tokenType)
          Help method reporting that PUK data of a hard token have been viewed by the given administrator.
static void reportTokenGenerated(org.ejbca.core.model.log.Admin admin, java.lang.String hardTokenSN, java.lang.String username, java.lang.String userDN, java.lang.String tokenType)
          Help method reporting that token have been generated by the given administrator.
static void reportTokenReactivated(org.ejbca.core.model.log.Admin admin, java.math.BigInteger certificateSerial, java.lang.String issuerDN)
          Help method reporting that the given hard token have been revoked by the given administrator.
static void reportTokenRevoked(org.ejbca.core.model.log.Admin admin, java.lang.String hardTokenSN, java.lang.String username, java.lang.String tokenType, int reason)
          Help method reporting that the given hard token have been revoked by the given administrator.
static void reportUserRevoked(org.ejbca.core.model.log.Admin admin, java.lang.String username, int reason)
          Help method reporting that the given user have been revoked by the given administrator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsHelper

public StatisticsHelper()
Method Detail

reportPukViewed

public static void reportPukViewed(org.ejbca.core.model.log.Admin admin,
                                   java.lang.String hardTokenSN,
                                   org.ejbca.core.model.ra.UserDataVO userdata,
                                   java.lang.String tokenType)
Help method reporting that PUK data of a hard token have been viewed by the given administrator.

Parameters:
admin - administrator performing the event.
hardTokenSN - the serial number of the hard token.

reportTokenGenerated

public static void reportTokenGenerated(org.ejbca.core.model.log.Admin admin,
                                        java.lang.String hardTokenSN,
                                        java.lang.String username,
                                        java.lang.String userDN,
                                        java.lang.String tokenType)
Help method reporting that token have been generated by the given administrator.


reportTokenRevoked

public static void reportTokenRevoked(org.ejbca.core.model.log.Admin admin,
                                      java.lang.String hardTokenSN,
                                      java.lang.String username,
                                      java.lang.String tokenType,
                                      int reason)
Help method reporting that the given hard token have been revoked by the given administrator.

Parameters:
admin - administrator performing the event.
hardTokenSN - the serial number of the hard token.

reportUserRevoked

public static void reportUserRevoked(org.ejbca.core.model.log.Admin admin,
                                     java.lang.String username,
                                     int reason)
Help method reporting that the given user have been revoked by the given administrator.

Parameters:
admin - administrator performing the event.
username - the unique user name of the user
reason - the revocation reason

reportTokenReactivated

public static void reportTokenReactivated(org.ejbca.core.model.log.Admin admin,
                                          java.math.BigInteger certificateSerial,
                                          java.lang.String issuerDN)
Help method reporting that the given hard token have been revoked by the given administrator.

Parameters:
admin - administrator performing the event.
certificateSerial - the serial number of the certificate that have been reactivated
issuerDN - of the certificate.