org.hardtokenmgmt.admin.common
Class Utils

java.lang.Object
  extended by org.hardtokenmgmt.admin.common.Utils

public class Utils
extends java.lang.Object

Contains util methods in common for most applications and WS server parts

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

Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String getPersonalNumber(java.lang.String subjectDN, BasicGlobalSettings gs)
          Method returning the serial number for a DN by looking up all the different names for SN defined in global.properties.
static java.lang.String getPersonalNumber(java.security.cert.X509Certificate certificate, BasicGlobalSettings gs)
          Method returning the serial number for a DN by looking up all the different names for SN defined in global.properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getPersonalNumber

public static java.lang.String getPersonalNumber(java.security.cert.X509Certificate certificate,
                                                 BasicGlobalSettings gs)
Method returning the serial number for a DN by looking up all the different names for SN defined in global.properties.

Parameters:
certificate -
Returns:
the serial number in DN or null if no defined SN field were found.

getPersonalNumber

public static java.lang.String getPersonalNumber(java.lang.String subjectDN,
                                                 BasicGlobalSettings gs)
Method returning the serial number for a DN by looking up all the different names for SN defined in global.properties.

Parameters:
subjectDN -
Returns:
the serial number in DN or null if no defined SN field were found.