Class JcaX509v3CertificateBuilderBC

java.lang.Object
com.itextpdf.bouncycastle.cert.jcajce.JcaX509v3CertificateBuilderBC
All Implemented Interfaces:
IJcaX509v3CertificateBuilder

public class JcaX509v3CertificateBuilderBC extends Object implements IJcaX509v3CertificateBuilder
Wrapper class for JcaX509v3CertificateBuilder.
  • Constructor Details

    • JcaX509v3CertificateBuilderBC

      public JcaX509v3CertificateBuilderBC (org.bouncycastle.cert.jcajce.JcaX509v3CertificateBuilder certificateBuilder)
      Creates new wrapper instance for JcaX509v3CertificateBuilder.
      Parameters:
      certificateBuilder - JcaX509v3CertificateBuilder to be wrapped
    • JcaX509v3CertificateBuilderBC

      public JcaX509v3CertificateBuilderBC (X509Certificate signingCert, BigInteger certSerialNumber, Date startDate, Date endDate, IX500Name subjectDnName, PublicKey publicKey)
      Creates new wrapper instance for JcaX509v3CertificateBuilder.
      Parameters:
      signingCert - X509Certificate to create JcaX509v3CertificateBuilder
      certSerialNumber - BigInteger to create JcaX509v3CertificateBuilder
      startDate - start date to create JcaX509v3CertificateBuilder
      endDate - end date to create JcaX509v3CertificateBuilder
      subjectDnName - X500Name wrapper to create JcaX509v3CertificateBuilder
      publicKey - PublicKey to create JcaX509v3CertificateBuilder
  • Method Details

    • getCertificateBuilder

      public org.bouncycastle.cert.jcajce.JcaX509v3CertificateBuilder getCertificateBuilder()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped JcaX509v3CertificateBuilder.
    • build

      public IX509CertificateHolder build (IContentSigner contentSigner)
      Calls actual build method for the wrapped JcaX509v3CertificateBuilder object.
      Specified by:
      build in interface IJcaX509v3CertificateBuilder
      Parameters:
      contentSigner - ContentSigner wrapper
      Returns:
      {IX509CertificateHolder} wrapper for built X509CertificateHolder object.
    • addExtension

      public IJcaX509v3CertificateBuilder addExtension (IASN1ObjectIdentifier extensionOID, boolean critical, IASN1Encodable extensionValue) throws CertIOExceptionBC
      Calls actual addExtension method for the wrapped JcaX509v3CertificateBuilder object.
      Specified by:
      addExtension in interface IJcaX509v3CertificateBuilder
      Parameters:
      extensionOID - wrapper for the OID defining the extension type
      critical - true if the extension is critical, false otherwise
      extensionValue - wrapped ASN.1 structure that forms the extension's value
      Returns:
      IJcaX509v3CertificateBuilder this wrapper object.
      Throws:
      CertIOExceptionBC
    • equals

      public boolean equals (Object o)
      Indicates whether some other object is "equal to" this one. Compares wrapped objects.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns a hash code value based on the wrapped object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Delegates toString method call to the wrapped object.
      Overrides:
      toString in class Object