Class VerificationOK


  • public class VerificationOK
    extends java.lang.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 java.security.cert.X509Certificate certificate
      The certificate that was verified successfully.
      protected java.lang.String message
      The reason why the certificate verified successfully.
      protected java.lang.Class<? extends CertificateVerifier> verifierClass
      The CertificateVerifier that was used for verifying.
    • Constructor Summary

      Constructors 
      Constructor Description
      VerificationOK​(java.security.cert.X509Certificate certificate, java.lang.Class<? extends CertificateVerifier> verifierClass, java.lang.String message)
      Creates a VerificationOK object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      A single String explaining which certificate was verified, how and why.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • certificate

        protected java.security.cert.X509Certificate certificate
        The certificate that was verified successfully.
      • verifierClass

        protected java.lang.Class<? extends CertificateVerifier> verifierClass
        The CertificateVerifier that was used for verifying.
      • message

        protected java.lang.String message
        The reason why the certificate verified successfully.
    • Constructor Detail

      • VerificationOK

        public VerificationOK​(java.security.cert.X509Certificate certificate,
                              java.lang.Class<? extends CertificateVerifier> verifierClass,
                              java.lang.String message)
        Creates a VerificationOK object
        Parameters:
        certificate - the certificate that was successfully verified
        verifierClass - the class that was used for verification
        message - the reason why the certificate could be verified
    • Method Detail

      • toString

        public java.lang.String toString()
        A single String explaining which certificate was verified, how and why.
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()