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) |
static java.security.cert.X509Certificate |
createIntermediateCert(java.security.PublicKey pubKey,
java.security.PrivateKey caPrivKey,
java.security.cert.X509Certificate caCert) |
static java.security.cert.X509Certificate |
createMasterCert(java.security.PublicKey pubKey,
java.security.PrivateKey privKey) |
void |
setUp() |
void |
testBasicPKCS12() |
void |
testBcEncryptedPrivateKeyInfo() |
void |
testCreateAES256andSHA256() |
void |
testCreateTripleDESAndSHA1() |
void |
testEncryptedPrivateKeyInfo() |
void |
testEncryptedPrivateKeyInfoDESWithMD5() |
void |
testEncryptedPrivateKeyInfoDESWithSHA1() |
void |
testEncryptedPrivateKeyInfoPKCS5() |
void |
testExceptions() |
void |
testGOST1() |
void |
testGOST2() |
void |
testKeyBag() |
void |
testPfxPdu() |
void |
testPfxPduMac() |
void |
testPKCS5() |
void |
testSafeBagRecovery() |
void |
testSHA256withPKCS5() |
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
public static java.security.cert.X509Certificate createMasterCert(java.security.PublicKey pubKey, java.security.PrivateKey privKey) throws java.lang.Exception
java.lang.Exception
public 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.Exception
public static java.security.cert.X509Certificate createCert(java.security.PublicKey pubKey, java.security.PrivateKey caPrivKey, java.security.PublicKey caPubKey) throws java.lang.Exception
java.lang.Exception
public void setUp()
setUp
in class junit.framework.TestCase
public void testPfxPdu() throws java.lang.Exception
java.lang.Exception
public void testPfxPduMac() throws java.lang.Exception
java.lang.Exception
public void testBcEncryptedPrivateKeyInfo() throws java.lang.Exception
java.lang.Exception
public void testEncryptedPrivateKeyInfo() throws java.lang.Exception
java.lang.Exception
public void testEncryptedPrivateKeyInfoPKCS5() throws java.lang.Exception
java.lang.Exception
public void testEncryptedPrivateKeyInfoDESWithSHA1() throws java.lang.Exception
java.lang.Exception
public void testEncryptedPrivateKeyInfoDESWithMD5() throws java.lang.Exception
java.lang.Exception
public void testKeyBag() throws java.lang.Exception
java.lang.Exception
public void testSafeBagRecovery() throws java.lang.Exception
java.lang.Exception
public void testExceptions() throws java.lang.Exception
java.lang.Exception
public void testBasicPKCS12() throws java.lang.Exception
java.lang.Exception
public void testSHA256withPKCS5() throws java.lang.Exception
java.lang.Exception
public void testCreateTripleDESAndSHA1() throws java.lang.Exception
java.lang.Exception
public void testCreateAES256andSHA256() throws java.lang.Exception
java.lang.Exception
public void testPKCS5() throws java.lang.Exception
java.lang.Exception
public void testGOST1() throws java.lang.Exception
java.lang.Exception
public void testGOST2() throws java.lang.Exception
java.lang.Exception