demo.keystore
Class IaikKeyStore

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

public class IaikKeyStore
extends Object
implements KeyStoreConstants


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 void clear()
           
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

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

This Javadoc may contain text parts from IETF Internet Standard specifications, see copyright note) and RSA Data Security Public-Key Cryptography Standards (see copyright note).

IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC