Class BasicOCSPRespBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.cert.ocsp.BasicOCSPRespBCFips
All Implemented Interfaces:
IBasicOCSPResp

public class BasicOCSPRespBCFips extends Object implements IBasicOCSPResp
Wrapper class for BasicOCSPResp.
  • Constructor Details

    • BasicOCSPRespBCFips

      public BasicOCSPRespBCFips (org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
      Creates new wrapper instance for BasicOCSPResp.
      Parameters:
      basicOCSPResp - BasicOCSPResp to be wrapped
  • Method Details

    • getBasicOCSPResp

      public org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped BasicOCSPResp.
    • getResponses

      public ISingleResp[] getResponses()
      Calls actual getResponses method for the wrapped BasicOCSPResp object.
      Specified by:
      getResponses in interface IBasicOCSPResp
      Returns:
      wrapped SingleResp list.
    • isSignatureValid

      public boolean isSignatureValid (IContentVerifierProvider provider) throws OCSPExceptionBCFips
      Calls actual isSignatureValid method for the wrapped BasicOCSPResp object.
      Specified by:
      isSignatureValid in interface IBasicOCSPResp
      Parameters:
      provider - ContentVerifierProvider wrapper
      Returns:
      boolean value.
      Throws:
      OCSPExceptionBCFips
    • getCerts

      public IX509CertificateHolder[] getCerts()
      Calls actual getCerts method for the wrapped BasicOCSPResp object.
      Specified by:
      getCerts in interface IBasicOCSPResp
      Returns:
      wrapped certificates list.
    • getEncoded

      public byte[] getEncoded() throws IOException
      Calls actual getEncoded method for the wrapped BasicOCSPResp object.
      Specified by:
      getEncoded in interface IBasicOCSPResp
      Returns:
      the default encoding for the wrapped object.
      Throws:
      IOException - on encoding error.
    • getProducedAt

      public Date getProducedAt()
      Calls actual getProducedAt method for the wrapped BasicOCSPResp object.
      Specified by:
      getProducedAt in interface IBasicOCSPResp
      Returns:
      produced at date.
    • getExtensionParsedValue

      public IASN1Encodable getExtensionParsedValue (IASN1ObjectIdentifier objectIdentifier)
      Gets parsed value of the extension retrieved using actual getExtension method for the wrapped BasicOCSPResp object.
      Specified by:
      getExtensionParsedValue in interface IBasicOCSPResp
      Parameters:
      objectIdentifier - extension object identifier
      Returns:
      wrapped extension parsed value.
    • 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