org.bouncycastle.jce.provider.test

Class PKCS12StoreTest

Implemented Interfaces:
org.bouncycastle.util.test.Test

public class PKCS12StoreTest
extends org.bouncycastle.util.test.SimpleTest

Exercise the various key stores, making sure we at least get back what we put in!

This tests both the PKCS12 key store.

Method Summary

Certificate
createCert(PublicKey pubKey, PrivateKey privKey)
we generate a self signed certificate for the sake of testing - RSA
String
getName()
static void
main(String[] args)
void
performTest()
void
testPKCS12Store()

Methods inherited from class org.bouncycastle.util.test.SimpleTest

areEqual, fail, fail, fail, getName, perform, performTest, runTest, runTest

Method Details

createCert

public Certificate createCert(PublicKey pubKey,
                              PrivateKey privKey)
            throws Exception
we generate a self signed certificate for the sake of testing - RSA

getName

public String getName()
Specified by:
getName in interface org.bouncycastle.util.test.Test
Overrides:
getName in interface org.bouncycastle.util.test.SimpleTest

main

public static void main(String[] args)

performTest

public void performTest()
            throws Exception
Overrides:
performTest in interface org.bouncycastle.util.test.SimpleTest

testPKCS12Store

public void testPKCS12Store()
            throws Exception