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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkCertificate
(int id, byte[] bytes) void
we generate a self signed certificate for the sake of testing - RSAvoid
we generate a self signed certificate for the sake of testing - DSAvoid
we generate a self signed certificate for the sake of testing - ECDSAvoid
void
void
void
void
checkKeyUsage
(int id, byte[] bytes) void
checkSelfSignedCertificate
(int id, byte[] bytes) getName()
void
setUp()
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
-
Constructor Details
-
BcCertTest
public BcCertTest()
-
-
Method Details
-
getName
- Overrides:
getName
in classjunit.framework.TestCase
-
checkCertificate
public void checkCertificate(int id, byte[] bytes) -
checkKeyUsage
- Throws:
IOException
-
checkSelfSignedCertificate
public void checkSelfSignedCertificate(int id, byte[] bytes) throws OperatorCreationException, IOException, CertException -
checkCreation1
we generate a self signed certificate for the sake of testing - RSA- Throws:
Exception
-
checkCreation2
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
- Throws:
Exception
-
checkCRLCreation2
- Throws:
Exception
-
checkCRLCreation3
- Throws:
Exception
-
checkCreation5
- Throws:
Exception
-
testForgedSignature
- Throws:
Exception
-
testNullDerNullCert
- Throws:
Exception
-
setUp
public void setUp()- Overrides:
setUp
in classjunit.framework.TestCase
-
testCertificates
- Throws:
Exception
-