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 |
setUp() |
void |
testCertificates() |
void |
testForgedSignature() |
void |
testNullDerNullCert() |
assertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, run, run, runBare, runTest, setName, tearDown, toString
public java.lang.String getName()
getName
in class junit.framework.TestCase
public void checkCertificate(int id, byte[] bytes)
public void checkKeyUsage(int id, byte[] bytes) throws java.io.IOException
java.io.IOException
public void checkSelfSignedCertificate(int id, byte[] bytes) throws OperatorCreationException, java.io.IOException, CertException
OperatorCreationException
java.io.IOException
CertException
public void checkCreation1() throws java.lang.Exception
java.lang.Exception
public void checkCreation2() throws java.lang.Exception
java.lang.Exception
public void checkCreation3()
public void checkCRLCreation1() throws java.lang.Exception
java.lang.Exception
public void checkCRLCreation2() throws java.lang.Exception
java.lang.Exception
public void checkCRLCreation3() throws java.lang.Exception
java.lang.Exception
public void checkCreation5() throws java.lang.Exception
java.lang.Exception
public void testForgedSignature() throws java.lang.Exception
java.lang.Exception
public void testNullDerNullCert() throws java.lang.Exception
java.lang.Exception
public void setUp()
setUp
in class junit.framework.TestCase
public void testCertificates() throws java.lang.Exception
java.lang.Exception