Class ValidationReport
- java.lang.Object
-
- com.itextpdf.signatures.validation.v1.report.ValidationReport
-
public class ValidationReport extends java.lang.Object
Validation report, which contains detailed validation results.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValidationReport.ValidationResult
Enum 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 void
addReportItem(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.ValidationResult
getValidationResult()
Get the result of a validation process.ValidationReport
merge(ValidationReport subReport)
Merge allReportItem
objects from sub report into this one.java.lang.String
toString()
.
-
-
-
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 onlyCertificateReportItem
failures
-
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 onlyCertificateReportItem
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 java.lang.String toString()
.- Overrides:
toString
in classjava.lang.Object
-
merge
public ValidationReport merge(ValidationReport subReport)
Merge allReportItem
objects from sub report into this one.- Parameters:
subReport
- report from which items will be merged- Returns:
ValidationReport
the same updated validation report instance.
-
-