org.bouncycastle.jce.provider.test

Class CertTest

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

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

Method Summary

void
checkCRLCreation1()
void
checkCRLCreation2()
void
checkCertificate(int id, byte[] bytes)
void
checkCreation1()
we generate a self signed certificate for the sake of testing - RSA
void
checkCreation2()
we generate a self signed certificate for the sake of testing - DSA
void
checkCreation3()
we generate a self signed certificate for the sake of testing - ECDSA
void
checkCreation4()
we generate a self signed certificate for the sake of testing - GOST3410
void
checkCreation5()
void
checkKeyUsage(int id, byte[] bytes)
void
checkNameCertificate(int id, byte[] bytes)
void
checkSelfSignedCertificate(int id, byte[] bytes)
String
getName()
static void
main(String[] args)
void
performTest()

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

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

Method Details

checkCRLCreation1

public void checkCRLCreation1()
            throws Exception

checkCRLCreation2

public void checkCRLCreation2()
            throws Exception

checkCertificate

public void checkCertificate(int id,
                             byte[] bytes)

checkCreation1

public void checkCreation1()
            throws Exception
we generate a self signed certificate for the sake of testing - RSA

checkCreation2

public void checkCreation2()
we generate a self signed certificate for the sake of testing - DSA

checkCreation3

public void checkCreation3()
we generate a self signed certificate for the sake of testing - ECDSA

checkCreation4

public void checkCreation4()
            throws Exception
we generate a self signed certificate for the sake of testing - GOST3410

checkCreation5

public void checkCreation5()
            throws Exception

checkKeyUsage

public void checkKeyUsage(int id,
                          byte[] bytes)

checkNameCertificate

public void checkNameCertificate(int id,
                                 byte[] bytes)

checkSelfSignedCertificate

public void checkSelfSignedCertificate(int id,
                                       byte[] bytes)

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