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 TypeMethodDescriptionvoidcheckCertificate(int id, byte[] bytes) voidwe generate a self signed certificate for the sake of testing - RSAvoidwe generate a self signed certificate for the sake of testing - DSAvoidwe generate a self signed certificate for the sake of testing - ECDSAvoidvoidvoidvoidvoidcheckKeyUsage(int id, byte[] bytes) voidcheckSelfSignedCertificate(int id, byte[] bytes) getName()voidsetUp()voidvoidvoidMethods 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:
getNamein 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:
setUpin classjunit.framework.TestCase
-
testCertificates
- Throws:
Exception
-