Class JcaX509v3CertificateBuilder

java.lang.Object
org.bouncycastle.cert.X509v3CertificateBuilder
org.bouncycastle.cert.jcajce.JcaX509v3CertificateBuilder

public class JcaX509v3CertificateBuilder extends X509v3CertificateBuilder
JCA helper class to allow JCA objects to be used in the construction of a Version 3 certificate.
  • Constructor Details

    • JcaX509v3CertificateBuilder

      public JcaX509v3CertificateBuilder(X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, SubjectPublicKeyInfo publicKey)
      Initialise the builder using a PublicKey.
      Parameters:
      issuer - X500Name representing the issuer of this certificate.
      serial - the serial number for the certificate.
      notBefore - date before which the certificate is not valid.
      notAfter - date after which the certificate is not valid.
      subject - X500Name representing the subject of this certificate.
      publicKey - the public key to be associated with the certificate.
    • JcaX509v3CertificateBuilder

      public JcaX509v3CertificateBuilder(X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, PublicKey publicKey)
      Initialise the builder using a PublicKey.
      Parameters:
      issuer - X500Name representing the issuer of this certificate.
      serial - the serial number for the certificate.
      notBefore - date before which the certificate is not valid.
      notAfter - date after which the certificate is not valid.
      subject - X500Name representing the subject of this certificate.
      publicKey - the public key to be associated with the certificate.
    • JcaX509v3CertificateBuilder

      public JcaX509v3CertificateBuilder(X500Name issuer, BigInteger serial, Time notBefore, Time notAfter, X500Name subject, PublicKey publicKey)
      Initialise the builder using a PublicKey.
      Parameters:
      issuer - X500Name representing the issuer of this certificate.
      serial - the serial number for the certificate.
      notBefore - Time before which the certificate is not valid.
      notAfter - Time after which the certificate is not valid.
      subject - X500Name representing the subject of this certificate.
      publicKey - the public key to be associated with the certificate.
    • JcaX509v3CertificateBuilder

      public JcaX509v3CertificateBuilder(X500Principal issuer, BigInteger serial, Date notBefore, Date notAfter, X500Principal subject, PublicKey publicKey)
      Initialise the builder using X500Principal objects and a PublicKey.
      Parameters:
      issuer - principal representing the issuer of this certificate.
      serial - the serial number for the certificate.
      notBefore - date before which the certificate is not valid.
      notAfter - date after which the certificate is not valid.
      subject - principal representing the subject of this certificate.
      publicKey - the public key to be associated with the certificate.
    • JcaX509v3CertificateBuilder

      public JcaX509v3CertificateBuilder(X509Certificate issuerCert, BigInteger serial, Date notBefore, Date notAfter, X500Principal subject, PublicKey publicKey)
      Initialise the builder using the subject from the passed in issuerCert as the issuer, as well as passing through and converting the other objects provided.
      Parameters:
      issuerCert - certificate who's subject is the issuer of the certificate we are building.
      serial - the serial number for the certificate.
      notBefore - date before which the certificate is not valid.
      notAfter - date after which the certificate is not valid.
      subject - principal representing the subject of this certificate.
      publicKey - the public key to be associated with the certificate.
    • JcaX509v3CertificateBuilder

      public JcaX509v3CertificateBuilder(X509Certificate issuerCert, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, PublicKey publicKey)
      Initialise the builder using the subject from the passed in issuerCert as the issuer, as well as passing through and converting the other objects provided.
      Parameters:
      issuerCert - certificate who's subject is the issuer of the certificate we are building.
      serial - the serial number for the certificate.
      notBefore - date before which the certificate is not valid.
      notAfter - date after which the certificate is not valid.
      subject - principal representing the subject of this certificate.
      publicKey - the public key to be associated with the certificate.
    • JcaX509v3CertificateBuilder

      public JcaX509v3CertificateBuilder(X509Certificate template) throws CertificateEncodingException
      Create a builder for a version 3 certificate, initialised with another certificate.
      Parameters:
      template - template certificate to base the new one on.
      Throws:
      CertificateEncodingException
  • Method Details