iText 8.0.5 API
iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse Interface Reference

This interface represents the wrapper for BasicOCSPResponse that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations. More...

Inheritance diagram for iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse:
iText.Commons.Bouncycastle.Asn1.IAsn1Encodable iText.Bouncycastle.Asn1.Ocsp.BasicOcspResponseBC iText.Bouncycastlefips.Asn1.Ocsp.BasicOcspResponseBCFips

Public Member Functions

DateTime  GetProducedAtDate ()
  Gets TbsResponseData for the wrapped BasicOCSPResponse object and calls actual getProducedAt method, then gets DateTime. More...
 
bool  Verify (IX509Certificate cert)
  Verifies given certificate for the wrapped BasicOCSPResponse object. More...
 
IEnumerable< IX509Certificate GetCerts ()
  Gets actual Certs field for the wrapped BasicOCSPResponse object. More...
 
IX509Certificate[]  GetOcspCerts ()
  Gets actual Certs field for the wrapped BasicOCSPResponse object. More...
 
byte[]  GetEncoded ()
  Calls actual GetEncoded method for the wrapped BasicOCSPResponse object. More...
 
ISingleResponse[]  GetResponses ()
  Calls actual GetResponses method for the wrapped BasicOCSPResponse object. More...
 
DateTime  GetProducedAt ()
  Calls actual GetProducedAt method for the wrapped BasicOCSPResponse object. More...
 
IAsn1Encodable  GetExtensionParsedValue (IDerObjectIdentifier getIdPkixOcspArchiveCutoff)
  Calls actual GetExtensionParsedValue method for the wrapped BasicOCSPResponse object. More...
 
- Public Member Functions inherited from iText.Commons.Bouncycastle.Asn1.IAsn1Encodable
IAsn1Object  ToASN1Primitive ()
  Calls actual toASN1Primitive method for the wrapped ASN1Encodable object. More...
 
bool  IsNull ()
  Checks if wrapped object is null. More...
 

Detailed Description

This interface represents the wrapper for BasicOCSPResponse that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.

Member Function Documentation

◆ GetCerts()

IEnumerable<IX509Certificate> iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse.GetCerts ( )

Gets actual Certs field for the wrapped BasicOCSPResponse object.

Returns
list of wrapped certificates.

Implemented in iText.Bouncycastlefips.Asn1.Ocsp.BasicOcspResponseBCFips, and iText.Bouncycastle.Asn1.Ocsp.BasicOcspResponseBC.

◆ GetEncoded()

byte [] iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse.GetEncoded ( )

Calls actual GetEncoded method for the wrapped BasicOCSPResponse object.

Returns
the default encoding for the wrapped object.

Implemented in iText.Bouncycastlefips.Asn1.Ocsp.BasicOcspResponseBCFips, and iText.Bouncycastle.Asn1.Ocsp.BasicOcspResponseBC.

◆ GetExtensionParsedValue()

IAsn1Encodable iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse.GetExtensionParsedValue ( IDerObjectIdentifier  getIdPkixOcspArchiveCutoff )

Calls actual GetExtensionParsedValue method for the wrapped BasicOCSPResponse object.

Returns
Parsed extension value.

Implemented in iText.Bouncycastlefips.Asn1.Ocsp.BasicOcspResponseBCFips, and iText.Bouncycastle.Asn1.Ocsp.BasicOcspResponseBC.

◆ GetOcspCerts()

IX509Certificate [] iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse.GetOcspCerts ( )

Gets actual Certs field for the wrapped BasicOCSPResponse object.

Returns
list of wrapped certificates.

Implemented in iText.Bouncycastlefips.Asn1.Ocsp.BasicOcspResponseBCFips, and iText.Bouncycastle.Asn1.Ocsp.BasicOcspResponseBC.

◆ GetProducedAt()

DateTime iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse.GetProducedAt ( )

Calls actual GetProducedAt method for the wrapped BasicOCSPResponse object.

Returns
date BasicOCSPResponse was produced at.

Implemented in iText.Bouncycastlefips.Asn1.Ocsp.BasicOcspResponseBCFips, and iText.Bouncycastle.Asn1.Ocsp.BasicOcspResponseBC.

◆ GetProducedAtDate()

DateTime iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse.GetProducedAtDate ( )

Gets TbsResponseData for the wrapped BasicOCSPResponse object and calls actual getProducedAt method, then gets DateTime.

Returns
produced at date.

Implemented in iText.Bouncycastlefips.Asn1.Ocsp.BasicOcspResponseBCFips, and iText.Bouncycastle.Asn1.Ocsp.BasicOcspResponseBC.

◆ GetResponses()

ISingleResponse [] iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse.GetResponses ( )

Calls actual GetResponses method for the wrapped BasicOCSPResponse object.

Returns
wrapped SingleResp list.

Implemented in iText.Bouncycastlefips.Asn1.Ocsp.BasicOcspResponseBCFips, and iText.Bouncycastle.Asn1.Ocsp.BasicOcspResponseBC.

◆ Verify()

bool iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse.Verify ( IX509Certificate  cert )

Verifies given certificate for the wrapped BasicOCSPResponse object.

Returns
boolean value.

Implemented in iText.Bouncycastlefips.Asn1.Ocsp.BasicOcspResponseBCFips, and iText.Bouncycastle.Asn1.Ocsp.BasicOcspResponseBC.