Class PKCS12StoreTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.jce.provider.test.PKCS12StoreTest
- All Implemented Interfaces:
Test
Exercise the various key stores, making sure we at least get back what we put in!
This tests both the PKCS12 key store.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCert
(PublicKey pubKey, PrivateKey privKey, String issuerEmail, String subjectEmail) we generate a self signed certificate for the sake of testing - RSAgetName()
static void
void
void
-
Constructor Details
-
PKCS12StoreTest
public PKCS12StoreTest()
-
-
Method Details
-
createCert
public Certificate createCert(PublicKey pubKey, PrivateKey privKey, String issuerEmail, String subjectEmail) throws Exception we generate a self signed certificate for the sake of testing - RSA- Throws:
Exception
-
testPKCS12Store
- Throws:
Exception
-
getName
- Specified by:
getName
in interfaceTest
- Specified by:
getName
in classSimpleTest
-
performTest
- Specified by:
performTest
in classSimpleTest
- Throws:
Exception
-
main
-