org.bouncycastle.mail.smime.test

Class SMIMETestUtil


public class SMIMETestUtil
extends java.lang.Object

Field Summary

static boolean
DEBUG
static KeyGenerator
desede128kg
static KeyGenerator
desede192kg
static KeyPairGenerator
dsaKpg
static KeyPairGenerator
kpg
static SecureRandom
rand
static KeyGenerator
rc240kg
static BigInteger
serialNumber

Method Summary

static X509Certificate
makeCertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN)
static KeyPair
makeDSAKeyPair()
static SecretKey
makeDesede128Key()
static SecretKey
makeDesede192Key()
static KeyPair
makeKeyPair()
static MimeBodyPart
makeMimeBodyPart(MimeMultipart _mm)
static MimeBodyPart
makeMimeBodyPart(String _msg)
static MimeMultipart
makeMimeMultipart(String _msg1, String _msg2)
static SecretKey
makeRC240Key()

Field Details

DEBUG

public static final boolean DEBUG
Field Value:
true

desede128kg

public static KeyGenerator desede128kg

desede192kg

public static KeyGenerator desede192kg

dsaKpg

public static KeyPairGenerator dsaKpg

kpg

public static KeyPairGenerator kpg

rand

public static SecureRandom rand

rc240kg

public static KeyGenerator rc240kg

serialNumber

public static BigInteger serialNumber

Method Details

makeCertificate

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

makeDSAKeyPair

public static KeyPair makeDSAKeyPair()

makeDesede128Key

public static SecretKey makeDesede128Key()

makeDesede192Key

public static SecretKey makeDesede192Key()

makeKeyPair

public static KeyPair makeKeyPair()

makeMimeBodyPart

public static MimeBodyPart makeMimeBodyPart(MimeMultipart _mm)
            throws MessagingException

makeMimeBodyPart

public static MimeBodyPart makeMimeBodyPart(String _msg)
            throws MessagingException

makeMimeMultipart

public static MimeMultipart makeMimeMultipart(String _msg1,
                                              String _msg2)
            throws MessagingException

makeRC240Key

public static SecretKey makeRC240Key()