Package org.bouncycastle.cert.test
Class BcCertTest
- java.lang.Object
 - 
- junit.framework.Assert
 - 
- junit.framework.TestCase
 - 
- org.bouncycastle.cert.test.BcCertTest
 
 
 
 
- 
- All Implemented Interfaces:
 junit.framework.Test
public class BcCertTest extends junit.framework.TestCase 
- 
- 
Constructor Summary
Constructors Constructor Description BcCertTest() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCertificate(int id, byte[] bytes)voidcheckCreation1()we generate a self signed certificate for the sake of testing - RSAvoidcheckCreation2()we generate a self signed certificate for the sake of testing - DSAvoidcheckCreation3()we generate a self signed certificate for the sake of testing - ECDSAvoidcheckCreation5()voidcheckCRLCreation1()voidcheckCRLCreation2()voidcheckCRLCreation3()voidcheckKeyUsage(int id, byte[] bytes)voidcheckSelfSignedCertificate(int id, byte[] bytes)java.lang.StringgetName()voidsetUp()voidtestCertificates()voidtestForgedSignature()voidtestNullDerNullCert()- 
Methods inherited from class junit.framework.TestCase
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 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getName
public java.lang.String getName()
- Overrides:
 getNamein classjunit.framework.TestCase
 
- 
checkCertificate
public void checkCertificate(int id, byte[] bytes) 
- 
checkKeyUsage
public void checkKeyUsage(int id, byte[] bytes) throws java.io.IOException- Throws:
 java.io.IOException
 
- 
checkSelfSignedCertificate
public void checkSelfSignedCertificate(int id, byte[] bytes) throws OperatorCreationException, java.io.IOException, CertException- Throws:
 OperatorCreationExceptionjava.io.IOExceptionCertException
 
- 
checkCreation1
public void checkCreation1() throws java.lang.Exceptionwe generate a self signed certificate for the sake of testing - RSA- Throws:
 java.lang.Exception
 
- 
checkCreation2
public void checkCreation2() throws java.lang.Exceptionwe generate a self signed certificate for the sake of testing - DSA- Throws:
 java.lang.Exception
 
- 
checkCreation3
public void checkCreation3()
we generate a self signed certificate for the sake of testing - ECDSA 
- 
checkCRLCreation1
public void checkCRLCreation1() throws java.lang.Exception- Throws:
 java.lang.Exception
 
- 
checkCRLCreation2
public void checkCRLCreation2() throws java.lang.Exception- Throws:
 java.lang.Exception
 
- 
checkCRLCreation3
public void checkCRLCreation3() throws java.lang.Exception- Throws:
 java.lang.Exception
 
- 
checkCreation5
public void checkCreation5() throws java.lang.Exception- Throws:
 java.lang.Exception
 
- 
testForgedSignature
public void testForgedSignature() throws java.lang.Exception- Throws:
 java.lang.Exception
 
- 
testNullDerNullCert
public void testNullDerNullCert() throws java.lang.Exception- Throws:
 java.lang.Exception
 
- 
setUp
public void setUp()
- Overrides:
 setUpin classjunit.framework.TestCase
 
- 
testCertificates
public void testCertificates() throws java.lang.Exception- Throws:
 java.lang.Exception
 
 - 
 
 -