public class BcCertTest
extends TestCase
| Constructor and Description |
|---|
BcCertTest() |
| Modifier and Type | Method and Description |
|---|---|
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 |
checkCreation5() |
void |
checkCRLCreation1() |
void |
checkCRLCreation2() |
void |
checkCRLCreation3() |
void |
checkKeyUsage(int id,
byte[] bytes) |
void |
checkSelfSignedCertificate(int id,
byte[] bytes) |
java.lang.String |
getName() |
void |
testCertificates() |
void |
testForgedSignature() |
void |
testNullDerNullCert() |
public java.lang.String getName()
public void checkCertificate(int id,
byte[] bytes)
public void checkKeyUsage(int id,
byte[] bytes)
throws java.io.IOException
java.io.IOExceptionpublic void checkSelfSignedCertificate(int id,
byte[] bytes)
throws OperatorCreationException,
java.io.IOException,
CertException
OperatorCreationExceptionjava.io.IOExceptionCertExceptionpublic void checkCreation1()
throws java.lang.Exception
java.lang.Exceptionpublic void checkCreation2()
throws java.lang.Exception
java.lang.Exceptionpublic void checkCRLCreation1()
throws java.lang.Exception
java.lang.Exceptionpublic void checkCRLCreation2()
throws java.lang.Exception
java.lang.Exceptionpublic void checkCRLCreation3()
throws java.lang.Exception
java.lang.Exceptionpublic void checkCreation5()
throws java.lang.Exception
java.lang.Exceptionpublic void testForgedSignature()
throws java.lang.Exception
java.lang.Exceptionpublic void testNullDerNullCert()
throws java.lang.Exception
java.lang.Exceptionpublic void testCertificates()
throws java.lang.Exception
java.lang.Exception