Package org.bouncycastle.tsp.test
Class TSPTestUtil
- java.lang.Object
-
- org.bouncycastle.tsp.test.TSPTestUtil
-
public class TSPTestUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEBUGstatic javax.crypto.KeyGeneratordesede128kgstatic javax.crypto.KeyGeneratordesede192kgstatic org.bouncycastle.asn1.ASN1ObjectIdentifierEuroPKI_TSA_Test_Policystatic JcaX509ExtensionUtilsextUtilsstatic java.security.KeyPairGeneratorkpgstatic java.security.SecureRandomrandstatic javax.crypto.KeyGeneratorrc2128kgstatic javax.crypto.KeyGeneratorrc240kgstatic javax.crypto.KeyGeneratorrc264kgstatic java.math.BigIntegerserialNumber
-
Constructor Summary
Constructors Constructor Description TSPTestUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringdumpBase64(byte[] data)static java.security.cert.X509CertificatemakeCACertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN)static java.security.cert.X509CertificatemakeCertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN)static java.security.cert.X509CertificatemakeCertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN, boolean _ca)static javax.crypto.SecretKeymakeDesede128Key()static javax.crypto.SecretKeymakeDesede192Key()static java.security.KeyPairmakeKeyPair()static javax.crypto.SecretKeymakeRC2128Key()static javax.crypto.SecretKeymakeRC240Key()static javax.crypto.SecretKeymakeRC264Key()
-
-
-
Field Detail
-
rand
public static java.security.SecureRandom rand
-
kpg
public static java.security.KeyPairGenerator kpg
-
desede128kg
public static javax.crypto.KeyGenerator desede128kg
-
desede192kg
public static javax.crypto.KeyGenerator desede192kg
-
rc240kg
public static javax.crypto.KeyGenerator rc240kg
-
rc264kg
public static javax.crypto.KeyGenerator rc264kg
-
rc2128kg
public static javax.crypto.KeyGenerator rc2128kg
-
serialNumber
public static java.math.BigInteger serialNumber
-
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
-
EuroPKI_TSA_Test_Policy
public static org.bouncycastle.asn1.ASN1ObjectIdentifier EuroPKI_TSA_Test_Policy
-
extUtils
public static JcaX509ExtensionUtils extUtils
-
-
Method Detail
-
dumpBase64
public static java.lang.String dumpBase64(byte[] data)
-
makeKeyPair
public static java.security.KeyPair makeKeyPair()
-
makeDesede128Key
public static javax.crypto.SecretKey makeDesede128Key()
-
makeDesede192Key
public static javax.crypto.SecretKey makeDesede192Key()
-
makeRC240Key
public static javax.crypto.SecretKey makeRC240Key()
-
makeRC264Key
public static javax.crypto.SecretKey makeRC264Key()
-
makeRC2128Key
public static javax.crypto.SecretKey makeRC2128Key()
-
makeCertificate
public static java.security.cert.X509Certificate makeCertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN) throws java.security.GeneralSecurityException, java.io.IOException- Throws:
java.security.GeneralSecurityExceptionjava.io.IOException
-
makeCACertificate
public static java.security.cert.X509Certificate makeCACertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN) throws java.security.GeneralSecurityException, java.io.IOException- Throws:
java.security.GeneralSecurityExceptionjava.io.IOException
-
makeCertificate
public static java.security.cert.X509Certificate makeCertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN, boolean _ca) throws java.security.GeneralSecurityException, java.io.IOException- Throws:
java.security.GeneralSecurityExceptionjava.io.IOException
-
-