org.bouncycastle.jce.provider.test

Class CertTest

Implemented Interfaces:
Test

public class CertTest
extends java.lang.Object
implements Test

Method Summary

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

Method Details

checkCRL

public TestResult checkCRL(int id,
                           byte[] bytes)


checkCRLCreation

public TestResult checkCRLCreation()


checkCertificate

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


checkCreation1

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


checkCreation2

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


checkCreation3

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


checkCreation4

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


checkKeyUsage

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


checkNameCertificate

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


checkSelfSignedCertificate

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


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