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
dsaKpg
static KeyPairGenerator
ecDsaKpg
static KeyPairGenerator
gostKpg
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 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
makeDsaKeyPair()
static KeyPair
makeEcDsaKeyPair()
static KeyPair
makeGostKeyPair()
static KeyPair
makeKeyPair()
static SecretKey
makeRC2128Key()
static SecretKey
makeRC240Key()
static SecretKey
makeRC264Key()
static byte[]
streamToByteArray(InputStream in)

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

dsaKpg

public static KeyPairGenerator dsaKpg

ecDsaKpg

public static KeyPairGenerator ecDsaKpg

gostKpg

public static KeyPairGenerator gostKpg

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)

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

makeDsaKeyPair

public static KeyPair makeDsaKeyPair()

makeEcDsaKeyPair

public static KeyPair makeEcDsaKeyPair()

makeGostKeyPair

public static KeyPair makeGostKeyPair()

makeKeyPair

public static KeyPair makeKeyPair()

makeRC2128Key

public static SecretKey makeRC2128Key()

makeRC240Key

public static SecretKey makeRC240Key()

makeRC264Key

public static SecretKey makeRC264Key()

streamToByteArray

public static byte[] streamToByteArray(InputStream in)
            throws IOException