public class PfxPduTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
PfxPduTest() |
| Modifier and Type | Method and Description |
|---|---|
static java.security.cert.X509Certificate |
createCert(java.security.PublicKey pubKey,
java.security.PrivateKey caPrivKey,
java.security.PublicKey caPubKey)
we generate a certificate signed by our CA's intermediate certficate
|
static java.security.cert.X509Certificate |
createIntermediateCert(java.security.PublicKey pubKey,
java.security.PrivateKey caPrivKey,
java.security.cert.X509Certificate caCert)
we generate an intermediate certificate signed by our CA
|
static java.security.cert.X509Certificate |
createMasterCert(java.security.PublicKey pubKey,
java.security.PrivateKey privKey)
we generate the CA's certificate
|
void |
setUp() |
void |
testBasicPKCS12() |
void |
testBcEncryptedPrivateKeyInfo() |
void |
testCreateAES256andSHA256() |
void |
testEncryptedPrivateKeyInfo() |
void |
testEncryptedPrivateKeyInfoPKCS5() |
void |
testExceptions() |
void |
testGOST1() |
void |
testGOST2() |
void |
testKeyBag() |
void |
testPfxPdu() |
void |
testPfxPduMac() |
void |
testPKCS5() |
void |
testSafeBagRecovery() |
void |
testSHA256withPKCS5() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toStringassertEquals, 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, fail, failpublic static java.security.cert.X509Certificate createMasterCert(java.security.PublicKey pubKey,
java.security.PrivateKey privKey)
throws java.lang.Exception
java.lang.Exceptionpublic static java.security.cert.X509Certificate createIntermediateCert(java.security.PublicKey pubKey,
java.security.PrivateKey caPrivKey,
java.security.cert.X509Certificate caCert)
throws java.lang.Exception
java.lang.Exceptionpublic static java.security.cert.X509Certificate createCert(java.security.PublicKey pubKey,
java.security.PrivateKey caPrivKey,
java.security.PublicKey caPubKey)
throws java.lang.Exception
java.lang.Exceptionpublic void setUp()
setUp in class junit.framework.TestCasepublic void testPfxPdu()
throws java.lang.Exception
java.lang.Exceptionpublic void testPfxPduMac()
throws java.lang.Exception
java.lang.Exceptionpublic void testBcEncryptedPrivateKeyInfo()
throws java.lang.Exception
java.lang.Exceptionpublic void testEncryptedPrivateKeyInfo()
throws java.lang.Exception
java.lang.Exceptionpublic void testEncryptedPrivateKeyInfoPKCS5()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyBag()
throws java.lang.Exception
java.lang.Exceptionpublic void testSafeBagRecovery()
throws java.lang.Exception
java.lang.Exceptionpublic void testExceptions()
throws java.lang.Exception
java.lang.Exceptionpublic void testBasicPKCS12()
throws java.lang.Exception
java.lang.Exceptionpublic void testSHA256withPKCS5()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateAES256andSHA256()
throws java.lang.Exception
java.lang.Exceptionpublic void testPKCS5()
throws java.lang.Exception
java.lang.Exceptionpublic void testGOST1()
throws java.lang.Exception
java.lang.Exceptionpublic void testGOST2()
throws java.lang.Exception
java.lang.Exception