Package org.bouncycastle.pkcs.test
Class PfxPduTest
- java.lang.Object
-
- TestCase
-
- org.bouncycastle.pkcs.test.PfxPduTest
-
public class PfxPduTest extends TestCase
-
-
Constructor Summary
Constructors Constructor Description PfxPduTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.security.cert.X509CertificatecreateCert(java.security.PublicKey pubKey, java.security.PrivateKey caPrivKey, java.security.PublicKey caPubKey)static java.security.cert.X509CertificatecreateIntermediateCert(java.security.PublicKey pubKey, java.security.PrivateKey caPrivKey, java.security.cert.X509Certificate caCert)static java.security.cert.X509CertificatecreateMasterCert(java.security.PublicKey pubKey, java.security.PrivateKey privKey)voidsetUp()voidtestBasicPKCS12()voidtestBcEncryptedPrivateKeyInfo()voidtestCreateAES256andSHA256()voidtestCreateTripleDESAndSHA1()voidtestEncryptedPrivateKeyInfo()voidtestEncryptedPrivateKeyInfoDESWithMD5()voidtestEncryptedPrivateKeyInfoDESWithSHA1()voidtestEncryptedPrivateKeyInfoPKCS5()voidtestExceptions()voidtestGOST1()voidtestGOST2()voidtestKeyBag()voidtestPfxPdu()voidtestPfxPduMac()voidtestPKCS5()voidtestSafeBagRecovery()voidtestSHA256withPKCS5()
-
-
-
Method Detail
-
createMasterCert
public static java.security.cert.X509Certificate createMasterCert(java.security.PublicKey pubKey, java.security.PrivateKey privKey) throws java.lang.Exception- Throws:
java.lang.Exception
-
createIntermediateCert
public static java.security.cert.X509Certificate createIntermediateCert(java.security.PublicKey pubKey, java.security.PrivateKey caPrivKey, java.security.cert.X509Certificate caCert) throws java.lang.Exception- Throws:
java.lang.Exception
-
createCert
public static java.security.cert.X509Certificate createCert(java.security.PublicKey pubKey, java.security.PrivateKey caPrivKey, java.security.PublicKey caPubKey) throws java.lang.Exception- Throws:
java.lang.Exception
-
setUp
public void setUp()
-
testPfxPdu
public void testPfxPdu() throws java.lang.Exception- Throws:
java.lang.Exception
-
testPfxPduMac
public void testPfxPduMac() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBcEncryptedPrivateKeyInfo
public void testBcEncryptedPrivateKeyInfo() throws java.lang.Exception- Throws:
java.lang.Exception
-
testEncryptedPrivateKeyInfo
public void testEncryptedPrivateKeyInfo() throws java.lang.Exception- Throws:
java.lang.Exception
-
testEncryptedPrivateKeyInfoPKCS5
public void testEncryptedPrivateKeyInfoPKCS5() throws java.lang.Exception- Throws:
java.lang.Exception
-
testEncryptedPrivateKeyInfoDESWithSHA1
public void testEncryptedPrivateKeyInfoDESWithSHA1() throws java.lang.Exception- Throws:
java.lang.Exception
-
testEncryptedPrivateKeyInfoDESWithMD5
public void testEncryptedPrivateKeyInfoDESWithMD5() throws java.lang.Exception- Throws:
java.lang.Exception
-
testKeyBag
public void testKeyBag() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSafeBagRecovery
public void testSafeBagRecovery() throws java.lang.Exception- Throws:
java.lang.Exception
-
testExceptions
public void testExceptions() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBasicPKCS12
public void testBasicPKCS12() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSHA256withPKCS5
public void testSHA256withPKCS5() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateTripleDESAndSHA1
public void testCreateTripleDESAndSHA1() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateAES256andSHA256
public void testCreateAES256andSHA256() throws java.lang.Exception- Throws:
java.lang.Exception
-
testPKCS5
public void testPKCS5() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGOST1
public void testGOST1() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGOST2
public void testGOST2() throws java.lang.Exception- Throws:
java.lang.Exception
-
-