org.bouncycastle.cms.test

Class CMSTestUtil


public class CMSTestUtil
extends java.lang.Object

Field Summary

static boolean
DEBUG
static KeyGenerator
aes192kg
static KeyGenerator
desede128kg
static KeyGenerator
desede192kg
static KeyPairGenerator
kpg
static SecureRandom
rand
static KeyGenerator
rc2128kg
static KeyGenerator
rc240kg
static KeyGenerator
rc264kg
static BigInteger
serialNumber

Method Summary

static String
dumpBase64(byte[] data)
static void
log(Exception _ex)
static void
log(String _msg)
static SecretKey
makeAES192Key()
static X509Certificate
makeCACertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN)
static X509Certificate
makeCertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN)
static X509Certificate
makeCertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN, boolean _ca)
static SecretKey
makeDesede128Key()
static SecretKey
makeDesede192Key()
static KeyPair
makeKeyPair()
static SecretKey
makeRC2128Key()
static SecretKey
makeRC240Key()
static SecretKey
makeRC264Key()

Field Details

DEBUG

public static final boolean DEBUG

Field Value:
true


aes192kg

public static KeyGenerator aes192kg


desede128kg

public static KeyGenerator desede128kg


desede192kg

public static KeyGenerator desede192kg


kpg

public static KeyPairGenerator kpg


rand

public static SecureRandom rand


rc2128kg

public static KeyGenerator rc2128kg


rc240kg

public static KeyGenerator rc240kg


rc264kg

public static KeyGenerator rc264kg


serialNumber

public static BigInteger serialNumber

Method Details

dumpBase64

public static String dumpBase64(byte[] data)


log

public static void log(Exception _ex)


log

public static void log(String _msg)


makeAES192Key

public static SecretKey makeAES192Key()


makeCACertificate

public static X509Certificate makeCACertificate(KeyPair _subKP,
                                                String _subDN,
                                                KeyPair _issKP,
                                                String _issDN)
            throws GeneralSecurityException,
                   IOException


makeCertificate

public static X509Certificate makeCertificate(KeyPair _subKP,
                                              String _subDN,
                                              KeyPair _issKP,
                                              String _issDN)
            throws GeneralSecurityException,
                   IOException


makeCertificate

public static X509Certificate makeCertificate(KeyPair _subKP,
                                              String _subDN,
                                              KeyPair _issKP,
                                              String _issDN,
                                              boolean _ca)
            throws GeneralSecurityException,
                   IOException


makeDesede128Key

public static SecretKey makeDesede128Key()


makeDesede192Key

public static SecretKey makeDesede192Key()


makeKeyPair

public static KeyPair makeKeyPair()


makeRC2128Key

public static SecretKey makeRC2128Key()


makeRC240Key

public static SecretKey makeRC240Key()


makeRC264Key

public static SecretKey makeRC264Key()