Package org.bouncycastle.pkcs.test
Class PfxPduTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.bouncycastle.pkcs.test.PfxPduTest
- All Implemented Interfaces:
junit.framework.Test
public class PfxPduTest
extends junit.framework.TestCase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic X509CertificatecreateCert(PublicKey pubKey, PrivateKey caPrivKey, PublicKey caPubKey) static X509CertificatecreateIntermediateCert(PublicKey pubKey, PrivateKey caPrivKey, X509Certificate caCert) static X509CertificatecreateMasterCert(PublicKey pubKey, PrivateKey privKey) voidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toString
-
Constructor Details
-
PfxPduTest
public PfxPduTest()
-
-
Method Details
-
createMasterCert
public static X509Certificate createMasterCert(PublicKey pubKey, PrivateKey privKey) throws Exception - Throws:
Exception
-
createIntermediateCert
public static X509Certificate createIntermediateCert(PublicKey pubKey, PrivateKey caPrivKey, X509Certificate caCert) throws Exception - Throws:
Exception
-
createCert
public static X509Certificate createCert(PublicKey pubKey, PrivateKey caPrivKey, PublicKey caPubKey) throws Exception - Throws:
Exception
-
setUp
public void setUp()- Overrides:
setUpin classjunit.framework.TestCase
-
testPfxPdu
- Throws:
Exception
-
testPfxPduMac
- Throws:
Exception
-
testBcEncryptedPrivateKeyInfo
- Throws:
Exception
-
testEncryptedPrivateKeyInfo
- Throws:
Exception
-
testEncryptedPrivateKeyInfoPKCS5
- Throws:
Exception
-
testEncryptedPrivateKeyInfoDESWithSHA1
- Throws:
Exception
-
testEncryptedPrivateKeyInfoDESWithMD5
- Throws:
Exception
-
testKeyBag
- Throws:
Exception
-
testSafeBagRecovery
- Throws:
Exception
-
testExceptions
- Throws:
Exception
-
testBasicPKCS12
- Throws:
Exception
-
testSHA256withPKCS5
- Throws:
Exception
-
testCreateTripleDESAndSHA1
- Throws:
Exception
-
testCreateAES256andSHA256
- Throws:
Exception
-
testPKCS5
- Throws:
Exception
-
testGOST1
- Throws:
Exception
-
testGOST2
- Throws:
Exception
-