Class X509v2CRLBuilderBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.cert.X509v2CRLBuilderBCFips
All Implemented Interfaces:
IX509v2CRLBuilder

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

    • X509v2CRLBuilderBCFips

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

      public X509v2CRLBuilderBCFips (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.
    • 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