public class BcCertTest
extends junit.framework.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 |
checkCreation3()
we generate a self signed certificate for the sake of testing - ECDSA
|
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() |
countTestCases, createResult, run, run, runBare, runTest, setName, setUp, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, failpublic java.lang.String getName()
getName in class junit.framework.TestCasepublic 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 checkCreation3()
public 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