Class CertificateReportItem
- java.lang.Object
-
- com.itextpdf.signatures.validation.report.ReportItem
-
- com.itextpdf.signatures.validation.report.CertificateReportItem
-
public class CertificateReportItem extends ReportItem
Report item to be used for single certificate related failure or log message.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.itextpdf.signatures.validation.report.ReportItem
ReportItem.ReportItemStatus
-
-
Field Summary
Fields Modifier and Type Field Description private java.security.cert.X509Certificatecertificate
-
Constructor Summary
Constructors Constructor Description CertificateReportItem(java.security.cert.X509Certificate certificate, java.lang.String checkName, java.lang.String message, ReportItem.ReportItemStatus status)CreateReportIteminstance.CertificateReportItem(java.security.cert.X509Certificate certificate, java.lang.String checkName, java.lang.String message, java.lang.Exception cause, ReportItem.ReportItemStatus status)CreateReportIteminstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.cert.X509CertificategetCertificate()Get the certificate related to this report item.java.lang.StringtoString()-
Methods inherited from class com.itextpdf.signatures.validation.report.ReportItem
getCheckName, getExceptionCause, getMessage, getStatus, setStatus
-
-
-
-
Constructor Detail
-
CertificateReportItem
public CertificateReportItem(java.security.cert.X509Certificate certificate, java.lang.String checkName, java.lang.String message, ReportItem.ReportItemStatus status)CreateReportIteminstance.- Parameters:
certificate-X509Certificateprocessing which report item occurredcheckName-String, which represents a check name during which report item occurredmessage-Stringwith the exact report item messagestatus-ReportItem.ReportItemStatusreport item status that determines validation result
-
CertificateReportItem
public CertificateReportItem(java.security.cert.X509Certificate certificate, java.lang.String checkName, java.lang.String message, java.lang.Exception cause, ReportItem.ReportItemStatus status)CreateReportIteminstance.- Parameters:
certificate-X509Certificateprocessing which report item occurredcheckName-String, which represents a check name during which report item occurredmessage-Stringwith the exact report item messagecause-Exception, which caused this report itemstatus-ReportItem.ReportItemStatusreport item status that determines validation result
-
-
Method Detail
-
getCertificate
public java.security.cert.X509Certificate getCertificate()
Get the certificate related to this report item.- Returns:
X509Certificaterelated to this report item.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classReportItem- Returns:
-
-