Package com.itextpdf.text.pdf.security
Class VerificationOK
- java.lang.Object
-
- com.itextpdf.text.pdf.security.VerificationOK
-
public class VerificationOK extends Object
Class that informs you that the verification of a Certificate succeeded using a specific CertificateVerifier and for a specific reason.
-
-
Field Summary
Fields Modifier and Type Field Description protected X509Certificate
certificate
The certificate that was verified successfully.protected String
message
The reason why the certificate verified successfully.protected Class<? extends CertificateVerifier>
verifierClass
The CertificateVerifier that was used for verifying.
-
Constructor Summary
Constructors Constructor Description VerificationOK(X509Certificate certificate, Class<? extends CertificateVerifier> verifierClass, String message)
Creates a VerificationOK object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
A single String explaining which certificate was verified, how and why.
-
-
-
Field Detail
-
certificate
protected X509Certificate certificate
The certificate that was verified successfully.
-
verifierClass
protected Class<? extends CertificateVerifier> verifierClass
The CertificateVerifier that was used for verifying.
-
message
protected String message
The reason why the certificate verified successfully.
-
-
Constructor Detail
-
VerificationOK
public VerificationOK(X509Certificate certificate, Class<? extends CertificateVerifier> verifierClass, String message)
Creates a VerificationOK object- Parameters:
certificate
- the certificate that was successfully verifiedverifierClass
- the class that was used for verificationmessage
- the reason why the certificate could be verified
-
-
Method Detail
-
toString
public String toString()
A single String explaining which certificate was verified, how and why.- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-