Class ValidationReport
- java.lang.Object
-
- com.itextpdf.signatures.validation.report.ValidationReport
-
public class ValidationReport extends java.lang.ObjectValidation report, which contains detailed validation results.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidationReport.ValidationResultEnum representing possible validation results.
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ReportItem>reportItems
-
Constructor Summary
Constructors Constructor Description ValidationReport()Create new instance ofValidationReport.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReportItem(ReportItem item)Add new report item to the overall validation result.java.util.List<CertificateReportItem>getCertificateFailures()Get list of failures, which are related to certificate validation.java.util.List<CertificateReportItem>getCertificateLogs()Get list of log messages, which are related to certificate validation.java.util.List<ReportItem>getFailures()Get all failures recognized during a validation process.java.util.List<ReportItem>getLogs()Get all log messages reported during a validation process.ValidationReport.ValidationResultgetValidationResult()Get the result of a validation process.ValidationReportmerge(ValidationReport subReport)Merge allReportItemobjects from sub report into this one.java.lang.StringtoString().
-
-
-
Field Detail
-
reportItems
private final java.util.List<ReportItem> reportItems
-
-
Constructor Detail
-
ValidationReport
public ValidationReport()
Create new instance ofValidationReport.
-
-
Method Detail
-
getValidationResult
public ValidationReport.ValidationResult getValidationResult()
Get the result of a validation process.- Returns:
ValidationReport.ValidationResult, which represents the result of a validation
-
getFailures
public java.util.List<ReportItem> getFailures()
Get all failures recognized during a validation process.- Returns:
- report items
List, which contains all recognized failures
-
getCertificateFailures
public java.util.List<CertificateReportItem> getCertificateFailures()
Get list of failures, which are related to certificate validation.- Returns:
- report items
List, which contains onlyCertificateReportItemfailures
-
getLogs
public java.util.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 java.util.List<CertificateReportItem> getCertificateLogs()
Get list of log messages, which are related to certificate validation.- Returns:
- report items
List, which contains onlyCertificateReportItemlog messages
-
addReportItem
public void addReportItem(ReportItem item)
Add new report item to the overall validation result.- Parameters:
item-ReportItemto be added
-
toString
public java.lang.String toString()
.- Overrides:
toStringin classjava.lang.Object
-
merge
public ValidationReport merge(ValidationReport subReport)
Merge allReportItemobjects from sub report into this one.- Parameters:
subReport- report from which items will be merged- Returns:
ValidationReportthe same updated validation report instance.
-
-