Class CertificateVerifier

  • Direct Known Subclasses:
    RootStoreVerifier

    @Deprecated
    public class CertificateVerifier
    extends java.lang.Object
    Deprecated.
    starting from 8.0.5. CertificateChainValidator should be used instead.
    Superclass for a series of certificate verifiers that will typically be used in a chain. It wraps another CertificateVerifier that is the next element in the chain of which the verify() method will be called.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean onlineCheckingAllowed
      Deprecated.
      Indicates if going online to verify a certificate is allowed.
      protected CertificateVerifier verifier
      Deprecated.
      The previous CertificateVerifier in the chain of verifiers.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void setOnlineCheckingAllowed​(boolean onlineCheckingAllowed)
      Deprecated.
      Decide whether or not online checking is allowed.
      java.util.List<VerificationOK> verify​(java.security.cert.X509Certificate signCert, java.security.cert.X509Certificate issuerCert, java.util.Date signDate)
      Deprecated.
      Checks the validity of the certificate, and calls the next verifier in the chain, if any.
      • Methods inherited from class java.lang.Object

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

      • verifier

        protected CertificateVerifier verifier
        Deprecated.
        The previous CertificateVerifier in the chain of verifiers.
      • onlineCheckingAllowed

        protected boolean onlineCheckingAllowed
        Deprecated.
        Indicates if going online to verify a certificate is allowed.
    • Constructor Detail

      • CertificateVerifier

        public CertificateVerifier​(CertificateVerifier verifier)
        Deprecated.
        Creates the final CertificateVerifier in a chain of verifiers.
        Parameters:
        verifier - the previous verifier in the chain
    • Method Detail

      • setOnlineCheckingAllowed

        public void setOnlineCheckingAllowed​(boolean onlineCheckingAllowed)
        Deprecated.
        Decide whether or not online checking is allowed.
        Parameters:
        onlineCheckingAllowed - a boolean indicating whether the certificate can be verified using online verification results.
      • verify

        public java.util.List<VerificationOK> verify​(java.security.cert.X509Certificate signCert,
                                                     java.security.cert.X509Certificate issuerCert,
                                                     java.util.Date signDate)
                                              throws java.security.GeneralSecurityException
        Deprecated.
        Checks the validity of the certificate, and calls the next verifier in the chain, if any.
        Parameters:
        signCert - the certificate that needs to be checked
        issuerCert - its issuer
        signDate - the date the certificate needs to be valid
        Returns:
        a list of VerificationOK objects. The list will be empty if the certificate couldn't be verified.
        Throws:
        java.security.GeneralSecurityException - thrown if the certificate has expired, isn't valid yet, or if an exception has been thrown in Certificate#verify.