demo.keystore
Class IaikKeyStore

java.lang.Object
  |
  +--demo.keystore.IaikKeyStore
All Implemented Interfaces:
KeyStoreConstants

public class IaikKeyStore
extends Object
implements KeyStoreConstants

Version:
File Revision 14

Field Summary
static int DH
           
static int DSA
           
static int RSA
           
static int SZ_1024
           
static int SZ_2048
           
static int SZ_512
           
 
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
 
Constructor Summary
IaikKeyStore()
           
 
Method Summary
static X509Certificate getCaCertificate(int type)
          Returns a demo CA certificate.
static PrivateKey getCaPrivateKey(int type)
          Returns the private key of a CA certificate.
static X509Certificate[] getCertificateChain(int type, int size)
          Returns a demo user certificate.
static PrivateKey getPrivateKey(int type, int size)
          Returns the private key of a CA certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

IaikKeyStore

public IaikKeyStore()
Method Detail

getPrivateKey

public static PrivateKey getPrivateKey(int type,
                                       int size)
Returns the private key of a CA certificate.
Parameters:
type - RSA or DSA or DH
size - SZ_512 or SZ_1024 SZ_2048

getCertificateChain

public static X509Certificate[] getCertificateChain(int type,
                                                    int size)
Returns a demo user certificate.
Parameters:
type - RSA or DSA or DH
size - SZ_512 or SZ_1024 SZ_2048

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

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK