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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkCertificate(int id, byte[] bytes)
     
    void
    we generate a self signed certificate for the sake of testing - RSA
    void
    we generate a self signed certificate for the sake of testing - DSA
    void
    we generate a self signed certificate for the sake of testing - ECDSA
    void
     
    void
     
    void
     
    void
     
    void
    checkKeyUsage(int id, byte[] bytes)
     
    void
    checkSelfSignedCertificate(int id, byte[] bytes)
     
     
    void
     
    void
     
    void
     
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BcCertTest

      public BcCertTest()
  • Method Details

    • getName

      public String getName()
      Overrides:
      getName in class junit.framework.TestCase
    • checkCertificate

      public void checkCertificate(int id, byte[] bytes)
    • checkKeyUsage

      public void checkKeyUsage(int id, byte[] bytes) throws IOException
      Throws:
      IOException
    • checkSelfSignedCertificate

      public void checkSelfSignedCertificate(int id, byte[] bytes) throws OperatorCreationException, IOException, CertException
      Throws:
      OperatorCreationException
      IOException
      CertException
    • checkCreation1

      public void checkCreation1() throws Exception
      we generate a self signed certificate for the sake of testing - RSA
      Throws:
      Exception
    • checkCreation2

      public void checkCreation2() throws Exception
      we generate a self signed certificate for the sake of testing - DSA
      Throws:
      Exception
    • checkCreation3

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

      public void checkCRLCreation1() throws Exception
      Throws:
      Exception
    • checkCRLCreation2

      public void checkCRLCreation2() throws Exception
      Throws:
      Exception
    • checkCRLCreation3

      public void checkCRLCreation3() throws Exception
      Throws:
      Exception
    • checkCreation5

      public void checkCreation5() throws Exception
      Throws:
      Exception
    • testForgedSignature

      public void testForgedSignature() throws Exception
      Throws:
      Exception
    • testNullDerNullCert

      public void testNullDerNullCert() throws Exception
      Throws:
      Exception
    • setUp

      public void setUp()
      Overrides:
      setUp in class junit.framework.TestCase
    • testCertificates

      public void testCertificates() throws Exception
      Throws:
      Exception