org.bouncycastle.tsp.test

Class TSPTestUtil

public class TSPTestUtil extends Object

Field Summary
static KeyGeneratordesede128kg
static KeyGeneratordesede192kg
static booleanDEBUG
static DERObjectIdentifierEuroPKI_TSA_Test_Policy
static KeyPairGeneratorkpg
static SecureRandomrand
static KeyGeneratorrc2128kg
static KeyGeneratorrc240kg
static KeyGeneratorrc264kg
static BigIntegerserialNumber
Method Summary
static StringdumpBase64(byte[] data)
static X509CertificatemakeCACertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN)
static X509CertificatemakeCertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN)
static X509CertificatemakeCertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN, boolean _ca)
static SecretKeymakeDesede128Key()
static SecretKeymakeDesede192Key()
static KeyPairmakeKeyPair()
static SecretKeymakeRC2128Key()
static SecretKeymakeRC240Key()
static SecretKeymakeRC264Key()

Field Detail

desede128kg

public static KeyGenerator desede128kg

desede192kg

public static KeyGenerator desede192kg

DEBUG

public static final boolean DEBUG

EuroPKI_TSA_Test_Policy

public static DERObjectIdentifier EuroPKI_TSA_Test_Policy

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 Detail

dumpBase64

public static String dumpBase64(byte[] data)

makeCACertificate

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

makeCertificate

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

makeCertificate

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

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