public class PfxPduTest
extends 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 |
testCreateTripleDESAndSHA1() |
void |
testEncryptedPrivateKeyInfo() |
void |
testEncryptedPrivateKeyInfoPKCS5() |
void |
testExceptions() |
void |
testGOST1() |
void |
testGOST2() |
void |
testKeyBag() |
void |
testPfxPdu() |
void |
testPfxPduMac() |
void |
testPKCS5() |
void |
testSafeBagRecovery() |
void |
testSHA256withPKCS5() |
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()
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 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