Class OCSPValidator

java.lang.Object
com.itextpdf.signatures.validation.v1.OCSPValidator

public class OCSPValidator extends Object
Class that allows you to validate a single OCSP response.
  • Constructor Details

  • Method Details

    • validate

      @Deprecated public void validate (ValidationReport report, ValidationContext context, X509Certificate certificate, ISingleResp singleResp, IBasicOCSPResp ocspResp, Date validationDate)
      Deprecated.
      starting from 8.0.5. TODO DEVSIX-8398 To be removed.
      Validates a certificate against single OCSP Response.
      Parameters:
      report - to store all the chain verification results
      context - the context in which to perform the validation
      certificate - the certificate to check for
      singleResp - single response to check
      ocspResp - basic OCSP response which contains single response to check
      validationDate - validation date to check for
    • validate

      public void validate (ValidationReport report, ValidationContext context, X509Certificate certificate, ISingleResp singleResp, IBasicOCSPResp ocspResp, Date validationDate, Date responseGenerationDate)
      Validates a certificate against single OCSP Response.
      Parameters:
      report - to store all the chain verification results
      context - the context in which to perform the validation
      certificate - the certificate to check for
      singleResp - single response to check
      ocspResp - basic OCSP response which contains single response to check
      validationDate - validation date to check for
      responseGenerationDate - trusted date at which response is generated