Class CertificateStatusBC

java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.CertificateStatusBC
All Implemented Interfaces:
ICertificateStatus
Direct Known Subclasses:
RevokedStatusBC, UnknownStatusBC

public class CertificateStatusBC extends Object implements ICertificateStatus
Wrapper class for CertificateStatus.
  • Constructor Details

    • CertificateStatusBC

      public CertificateStatusBC (org.bouncycastle.cert.ocsp.CertificateStatus certificateStatus)
      Creates new wrapper instance for CertificateStatus.
      Parameters:
      certificateStatus - CertificateStatus to be wrapped
  • Method Details

    • getInstance

      public static CertificateStatusBC getInstance()
      Gets wrapper instance.
      Returns:
      CertificateStatusBC instance.
    • getCertificateStatus

      public org.bouncycastle.cert.ocsp.CertificateStatus getCertificateStatus()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped CertificateStatus.
    • getGood

      public ICertificateStatus getGood()
      Gets GOOD constant for the wrapped CertificateStatus.
      Specified by:
      getGood in interface ICertificateStatus
      Returns:
      CertificateStatus.GOOD wrapper.
    • 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