org.bouncycastle.jce.provider.test

Class PKCS12StoreTest

Implemented Interfaces:
Test

public class PKCS12StoreTest
extends java.lang.Object
implements Test

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)
TestResult
perform()
TestResult
testPKCS12Store()

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 Test


main

public static void main(String[] args)


perform

public TestResult perform()
Specified by:
perform in interface Test


testPKCS12Store

public TestResult testPKCS12Store()