org.eparapher.core.crypto
Class EPKeystoreManager

java.lang.Object
  extended by org.eparapher.core.crypto.EPKeystoreManager

public class EPKeystoreManager
extends Object


Field Summary
static String BC_CONFIGNAME
           
static String[][] certStoreFamilies
           
static String JCEKS_CONFIGNAME
           
static String JKS_CONFIGNAME
           
static String KDB_CONFIGNAME
           
static String[] KSFILEFORMAT
           
static String MSCAPI_CONFIGNAME
           
static String PKCS11_CONFIGNAME
           
static String PKCS12_CONFIGNAME
           
static String UBER_CONFIGNAME
           
 
Constructor Summary
EPKeystoreManager()
           
 
Method Summary
 String[][] getCertStoreFamilies()
           
static EPKeystoreManager getInstance()
           
 ITrustStore getTrustStore()
           
 IUserKeystore getUserkeystore()
           
 boolean initTrustKeystore()
          initialize the Trust store that contains the CA certificate.
 boolean initUserKeystore()
          Initialize the User Keystore, that contains user cryptographic informations : keys (private) and certificates (public).
static boolean isBCUsed()
           
static boolean isCAPICOMUsed()
           
static boolean isCMSKSUsed()
           
static boolean isJCEKSUsed()
           
static boolean isJKSUsed()
           
static boolean isPKCS11Used()
           
static boolean isPKCS12Used()
           
static boolean isUBERUsed()
           
 void startTrackingThread()
          Start the thread that track the token status (accessible/removed) Only started if PKCS11 is used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSCAPI_CONFIGNAME

public static final String MSCAPI_CONFIGNAME
See Also:
Constant Field Values

PKCS11_CONFIGNAME

public static final String PKCS11_CONFIGNAME
See Also:
Constant Field Values

JKS_CONFIGNAME

public static final String JKS_CONFIGNAME
See Also:
Constant Field Values

JCEKS_CONFIGNAME

public static final String JCEKS_CONFIGNAME
See Also:
Constant Field Values

PKCS12_CONFIGNAME

public static final String PKCS12_CONFIGNAME
See Also:
Constant Field Values

BC_CONFIGNAME

public static final String BC_CONFIGNAME
See Also:
Constant Field Values

UBER_CONFIGNAME

public static final String UBER_CONFIGNAME
See Also:
Constant Field Values

KDB_CONFIGNAME

public static final String KDB_CONFIGNAME
See Also:
Constant Field Values

KSFILEFORMAT

public static final String[] KSFILEFORMAT

certStoreFamilies

public static String[][] certStoreFamilies
Constructor Detail

EPKeystoreManager

public EPKeystoreManager()
Method Detail

getInstance

public static EPKeystoreManager getInstance()

getCertStoreFamilies

public String[][] getCertStoreFamilies()

getUserkeystore

public IUserKeystore getUserkeystore()

getTrustStore

public ITrustStore getTrustStore()

initTrustKeystore

public boolean initTrustKeystore()
initialize the Trust store that contains the CA certificate. It's using the JRE Truststore (${java.home}/lib/security) or the CAPICOM root keystore

Returns:
true if loaded

initUserKeystore

public boolean initUserKeystore()
Initialize the User Keystore, that contains user cryptographic informations : keys (private) and certificates (public). Manage PKCS11, Windows store and File Keystore

Returns:

startTrackingThread

public void startTrackingThread()
Start the thread that track the token status (accessible/removed) Only started if PKCS11 is used.


isPKCS11Used

public static boolean isPKCS11Used()

isPKCS12Used

public static boolean isPKCS12Used()

isBCUsed

public static boolean isBCUsed()

isUBERUsed

public static boolean isUBERUsed()

isJKSUsed

public static boolean isJKSUsed()

isJCEKSUsed

public static boolean isJCEKSUsed()

isCMSKSUsed

public static boolean isCMSKSUsed()

isCAPICOMUsed

public static boolean isCAPICOMUsed()


Copyright © 2009 eParapher Software Foundation. All Rights Reserved.