Package org.bouncycastle.tsp.test
Class TSPTestUtil
java.lang.Object
org.bouncycastle.tsp.test.TSPTestUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
static KeyGenerator
static KeyGenerator
static org.bouncycastle.asn1.ASN1ObjectIdentifier
static JcaX509ExtensionUtils
static KeyPairGenerator
static SecureRandom
static KeyGenerator
static KeyGenerator
static KeyGenerator
static BigInteger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
dumpBase64
(byte[] data) 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
static SecretKey
static KeyPair
static SecretKey
static SecretKey
static SecretKey
-
Field Details
-
rand
-
kpg
-
desede128kg
-
desede192kg
-
rc240kg
-
rc264kg
-
rc2128kg
-
serialNumber
-
DEBUG
public static final boolean DEBUG- See Also:
-
EuroPKI_TSA_Test_Policy
public static org.bouncycastle.asn1.ASN1ObjectIdentifier EuroPKI_TSA_Test_Policy -
extUtils
-
-
Constructor Details
-
TSPTestUtil
public TSPTestUtil()
-
-
Method Details
-
dumpBase64
-
makeKeyPair
-
makeDesede128Key
-
makeDesede192Key
-
makeRC240Key
-
makeRC264Key
-
makeRC2128Key
-
makeCertificate
public static X509Certificate makeCertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-
makeCACertificate
public static X509Certificate makeCACertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-
makeCertificate
public static X509Certificate makeCertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN, boolean _ca) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-