public class

CMSTestUtil

extends Object
java.lang.Object
   ↳ org.bouncycastle.cms.test.CMSTestUtil

Summary

Constants
boolean DEBUG
Fields
public static KeyGenerator aes192kg
public static KeyGenerator aesKg
public static KeyGenerator camelliaKg
public static KeyGenerator desede128kg
public static KeyGenerator desede192kg
public static KeyPairGenerator dsaKpg
public static KeyPairGenerator ecDsaKpg
public static KeyPairGenerator ecGostKpg
public static KeyPairGenerator gostKpg
public static KeyPairGenerator kpg
public static SecureRandom rand
public static KeyGenerator rc2128kg
public static KeyGenerator rc240kg
public static KeyGenerator rc264kg
public static KeyGenerator seedKg
public static BigInteger serialNumber
Public Constructors
CMSTestUtil()
Public Methods
static String dumpBase64(byte[] data)
static X509AttributeCertificate getAttributeCertificate()
static SecretKey makeAES192Key()
static SecretKey makeAESKey(int keySize)
static X509Certificate makeCACertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN)
static SecretKey makeCamelliaKey(int keySize)
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 X509CRL makeCrl(KeyPair pair)
static SecretKey makeDesede128Key()
static SecretKey makeDesede192Key()
static KeyPair makeDsaKeyPair()
static KeyPair makeEcDsaKeyPair()
static KeyPair makeEcGostKeyPair()
static KeyPair makeGostKeyPair()
static KeyPair makeKeyPair()
static SecretKey makeRC2128Key()
static SecretKey makeRC240Key()
static SecretKey makeRC264Key()
static SecretKey makeSEEDKey()
static X509Certificate makeV1Certificate(KeyPair subKP, String _subDN, KeyPair issKP, String _issDN)
static byte[] streamToByteArray(InputStream in)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final boolean DEBUG

Constant Value: true

Fields

public static KeyGenerator aes192kg

public static KeyGenerator aesKg

public static KeyGenerator camelliaKg

public static KeyGenerator desede128kg

public static KeyGenerator desede192kg

public static KeyPairGenerator dsaKpg

public static KeyPairGenerator ecDsaKpg

public static KeyPairGenerator ecGostKpg

public static KeyPairGenerator gostKpg

public static KeyPairGenerator kpg

public static SecureRandom rand

public static KeyGenerator rc2128kg

public static KeyGenerator rc240kg

public static KeyGenerator rc264kg

public static KeyGenerator seedKg

public static BigInteger serialNumber

Public Constructors

public CMSTestUtil ()

Public Methods

public static String dumpBase64 (byte[] data)

public static X509AttributeCertificate getAttributeCertificate ()

Throws
Exception

public static SecretKey makeAES192Key ()

public static SecretKey makeAESKey (int keySize)

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

public static SecretKey makeCamelliaKey (int keySize)

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

public static X509Certificate makeCertificate (KeyPair subKP, String _subDN, KeyPair issKP, String _issDN, boolean _ca)

public static X509CRL makeCrl (KeyPair pair)

Throws
Exception

public static SecretKey makeDesede128Key ()

public static SecretKey makeDesede192Key ()

public static KeyPair makeDsaKeyPair ()

public static KeyPair makeEcDsaKeyPair ()

public static KeyPair makeEcGostKeyPair ()

public static KeyPair makeGostKeyPair ()

public static KeyPair makeKeyPair ()

public static SecretKey makeRC2128Key ()

public static SecretKey makeRC240Key ()

public static SecretKey makeRC264Key ()

public static SecretKey makeSEEDKey ()

public static X509Certificate makeV1Certificate (KeyPair subKP, String _subDN, KeyPair issKP, String _issDN)

public static byte[] streamToByteArray (InputStream in)

Throws
IOException