Class ValidationReport

java.lang.Object
com.itextpdf.signatures.validation.v1.report.ValidationReport

public class ValidationReport extends Object
Validation report, which contains detailed validation results.
  • Constructor Details

    • ValidationReport

      public ValidationReport()
      Create new instance of ValidationReport.
  • Method Details

    • getValidationResult

      public ValidationReport.ValidationResult getValidationResult()
      Get the result of a validation process.
      Returns:
      ValidationReport.ValidationResult, which represents the result of a validation
    • getFailures

      public List<ReportItem> getFailures()
      Get all failures recognized during a validation process.
      Returns:
      report items List, which contains all recognized failures
    • getCertificateFailures

      public List<CertificateReportItem> getCertificateFailures()
      Get list of failures, which are related to certificate validation.
      Returns:
      report items List, which contains only CertificateReportItem failures
    • getLogs

      public List<ReportItem> getLogs()
      Get all log messages reported during a validation process.
      Returns:
      report items List, which contains all reported log messages, related to validation
    • getCertificateLogs

      public List<CertificateReportItem> getCertificateLogs()
      Get list of log messages, which are related to certificate validation.
      Returns:
      report items List, which contains only CertificateReportItem log messages
    • addReportItem

      public void addReportItem (ReportItem item)
      Add new report item to the overall validation result.
      Parameters:
      item - ReportItem to be added
    • toString

      public String toString()
      Overrides:
      toString in class Object