Class X509v2CRLBuilderBC

java.lang.Object
com.itextpdf.bouncycastle.cert.X509v2CRLBuilderBC
All Implemented Interfaces:
IX509v2CRLBuilder

public class X509v2CRLBuilderBC extends Object implements IX509v2CRLBuilder
Wrapper class for X509v2CRLBuilder.
  • Constructor Details

    • X509v2CRLBuilderBC

      public X509v2CRLBuilderBC (org.bouncycastle.cert.X509v2CRLBuilder builder)
      Creates new wrapper instance for X509v2CRLBuilder.
      Parameters:
      builder - X509v2CRLBuilder to be wrapped
    • X509v2CRLBuilderBC

      public X509v2CRLBuilderBC (IX500Name x500Name, Date date)
      Creates new wrapper instance for X509v2CRLBuilder.
      Parameters:
      x500Name - X500Name wrapper to create X509v2CRLBuilder
      date - Date to create X509v2CRLBuilder
  • Method Details

    • getBuilder

      public org.bouncycastle.cert.X509v2CRLBuilder getBuilder()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped X509v2CRLBuilder.
    • addCRLEntry

      public IX509v2CRLBuilder addCRLEntry (BigInteger bigInteger, Date date, int i)
      Calls actual addCRLEntry method for the wrapped X509v2CRLBuilder object.
      Specified by:
      addCRLEntry in interface IX509v2CRLBuilder
      Parameters:
      bigInteger - serial number of revoked certificate
      date - date of certificate revocation
      i - the reason code, as indicated in CRLReason, i.e CRLReason.keyCompromise, or 0 if not to be used
      Returns:
      IX509v2CRLBuilder the current wrapper object.
    • addExtension

      public IX509v2CRLBuilder addExtension (IASN1ObjectIdentifier objectIdentifier, boolean isCritical, IASN1Encodable extension) throws IOException
      Calls actual addExtension method for the wrapped X509v2CRLBuilder object.
      Specified by:
      addExtension in interface IX509v2CRLBuilder
      Parameters:
      objectIdentifier - extension object identifier
      isCritical - specifies if extension is critical or not
      extension - encoded extension value
      Returns:
      IX509v2CRLBuilder the current wrapper object.
      Throws:
      IOException - if an I/O error occurs.
    • setNextUpdate

      public IX509v2CRLBuilder setNextUpdate (Date nextUpdate)
      Calls actual setNextUpdate method for the wrapped X509v2CRLBuilder object.
      Specified by:
      setNextUpdate in interface IX509v2CRLBuilder
      Parameters:
      nextUpdate - date of next CRL update
      Returns:
      IX509v2CRLBuilder the current wrapper object.
    • build

      public IX509CRLHolder build (IContentSigner signer)
      Calls actual build method for the wrapped X509v2CRLBuilder object.
      Specified by:
      build in interface IX509v2CRLBuilder
      Parameters:
      signer - ContentSigner wrapper
      Returns:
      IX509CRLHolder the wrapper for built X509CRLHolder object.
    • 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