Package org.bouncycastle.cert.test
Class CertTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.cert.test.CertTest
- All Implemented Interfaces:
org.bouncycastle.util.test.Test
public class CertTest
extends org.bouncycastle.util.test.SimpleTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkCertificate
(int id, byte[] bytes) void
checkCertificate
(int id, byte[] bytes, PublicKey pubKey) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
checkKeyUsage
(int id, byte[] bytes) void
checkNameCertificate
(int id, byte[] bytes) void
checkSelfSignedCertificate
(int id, byte[] bytes) void
checkSelfSignedCertificateAndKey
(int id, byte[] certBytes, String sigAlgorithm, byte[] keyBytes) void
getName()
static void
void
Methods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests
-
Constructor Details
-
CertTest
public CertTest()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.bouncycastle.util.test.Test
- Specified by:
getName
in classorg.bouncycastle.util.test.SimpleTest
-
checkCertificate
public void checkCertificate(int id, byte[] bytes) -
checkCertificate
-
checkNameCertificate
public void checkNameCertificate(int id, byte[] bytes) -
checkKeyUsage
public void checkKeyUsage(int id, byte[] bytes) -
checkSelfSignedCertificate
public void checkSelfSignedCertificate(int id, byte[] bytes) -
checkSelfSignedCertificateAndKey
public void checkSelfSignedCertificateAndKey(int id, byte[] certBytes, String sigAlgorithm, byte[] keyBytes) -
checkCreation1
- Throws:
Exception
-
checkCreation2
- Throws:
Exception
-
checkSm3WithSm2Creation
- Throws:
Exception
-
checkCreation3
public void checkCreation3() -
checkCRLCreation1
- Throws:
Exception
-
checkCRLCreation2
- Throws:
Exception
-
checkCRLCreation3
- Throws:
Exception
-
checkCRLCreation4
- Throws:
Exception
-
checkCRLCreation5
- Throws:
Exception
-
checkCRLCompositeCreation
- Throws:
Exception
-
checkCreation4
- Throws:
Exception
-
checkCreation5
- Throws:
Exception
-
checkCreation6
- Throws:
Exception
-
checkCreation7
- Throws:
Exception
-
checkCreation8
- Throws:
Exception
-
checkCreation9
- Throws:
Exception
-
checkCreation10
- Throws:
Exception
-
checkCreationQTESLA
- Throws:
Exception
-
checkCreationDSA
- Throws:
Exception
-
checkCreationRSA
- Throws:
Exception
-
checkCreationRSAPSS
- Throws:
Exception
-
checkCreationECDSA
- Throws:
Exception
-
checkCreationComposite
- Throws:
Exception
-
performTest
- Specified by:
performTest
in classorg.bouncycastle.util.test.SimpleTest
- Throws:
Exception
-
main
-