Class PKCS12StoreTest
- java.lang.Object
 - 
- org.bouncycastle.util.test.SimpleTest
 - 
- org.bouncycastle.jce.provider.test.PKCS12StoreTest
 
 
 
- 
- All Implemented Interfaces:
 Test
public class PKCS12StoreTest extends SimpleTest
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 Constructor Description PKCS12StoreTest() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.cert.CertificatecreateCert(java.security.PublicKey pubKey, java.security.PrivateKey privKey, java.lang.String issuerEmail, java.lang.String subjectEmail)we generate a self signed certificate for the sake of testing - RSAjava.lang.StringgetName()static voidmain(java.lang.String[] args)voidperformTest()voidtestPKCS12Store() 
 - 
 
- 
- 
Method Detail
- 
createCert
public java.security.cert.Certificate createCert(java.security.PublicKey pubKey, java.security.PrivateKey privKey, java.lang.String issuerEmail, java.lang.String subjectEmail) throws java.lang.Exceptionwe generate a self signed certificate for the sake of testing - RSA- Throws:
 java.lang.Exception
 
- 
testPKCS12Store
public void testPKCS12Store() throws java.lang.Exception- Throws:
 java.lang.Exception
 
- 
getName
public java.lang.String getName()
- Specified by:
 getNamein interfaceTest- Specified by:
 getNamein classSimpleTest
 
- 
performTest
public void performTest() throws java.lang.Exception- Specified by:
 performTestin classSimpleTest- Throws:
 java.lang.Exception
 
- 
main
public static void main(java.lang.String[] args)
 
 - 
 
 -