Package org.bouncycastle.pkix.test
Class TestUtil
java.lang.Object
org.bouncycastle.pkix.test.TestUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic X509Certificate
makeCaCertificate
(X509Certificate issuer, PrivateKey issuerKey, PublicKey subjectKey, String subject) static X509CRL
makeCrl
(X509Certificate issuer, PrivateKey sigKey, BigInteger revoked) static X509Certificate
makeEeCertificate
(boolean withDistPoint, X509Certificate issuer, PrivateKey issuerKey, PublicKey subjectKey, String subject) static X509Certificate
makeTrustAnchor
(KeyPair kp, String name)
-
Field Details
-
serialNumber
-
-
Constructor Details
-
TestUtil
public TestUtil()
-
-
Method Details
-
makeTrustAnchor
public static X509Certificate makeTrustAnchor(KeyPair kp, String name) throws GeneralSecurityException, IOException, OperatorCreationException -
makeCaCertificate
public static X509Certificate makeCaCertificate(X509Certificate issuer, PrivateKey issuerKey, PublicKey subjectKey, String subject) throws GeneralSecurityException, IOException, OperatorCreationException -
makeEeCertificate
public static X509Certificate makeEeCertificate(boolean withDistPoint, X509Certificate issuer, PrivateKey issuerKey, PublicKey subjectKey, String subject) throws GeneralSecurityException, IOException, OperatorCreationException -
makeCrl
public static X509CRL makeCrl(X509Certificate issuer, PrivateKey sigKey, BigInteger revoked) throws Exception - Throws:
Exception
-