demo.keystore
Class IaikKeyStore
java.lang.Object
|
+--demo.keystore.IaikKeyStore
- All Implemented Interfaces:
- KeyStoreConstants
- public class IaikKeyStore
- extends Object
- implements KeyStoreConstants
Fields inherited from interface demo.keystore.KeyStoreConstants |
CA_DSA, CA_RSA, DH_1024, DH_2048, DH_512, DSA_1024, DSA_2048, DSA_512, KS_FILENAME, KS_PASSWORD, RSA_1024, RSA_2048, RSA_512 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RSA
public static final int RSA
DSA
public static final int DSA
DH
public static final int DH
SZ_512
public static final int SZ_512
SZ_1024
public static final int SZ_1024
SZ_2048
public static final int SZ_2048
IaikKeyStore
public IaikKeyStore()
clear
public static void clear()
getPrivateKey
public static PrivateKey getPrivateKey(int type,
int size)
- Returns the private key of a CA certificate.
- Parameters:
type
- RSA
or DSA
or DH
getCertificateChain
public static X509Certificate[] getCertificateChain(int type,
int size)
- Returns a demo user certificate.
- Parameters:
type
- RSA
or DSA
or DH
getCaPrivateKey
public static PrivateKey getCaPrivateKey(int type)
- Returns the private key of a CA certificate.
- Parameters:
type
- RSA
or DSA
getCaCertificate
public static X509Certificate getCaCertificate(int type)
- Returns a demo CA certificate.
- Parameters:
type
- RSA
or DSA
IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC