Interface InvalidCertificateStrategy

  • All Known Implementing Classes:
    FingerprintStrategy

    public interface InvalidCertificateStrategy
    • Method Detail

      • checkAcceptance

        CertificateAcceptance checkAcceptance​(Certificate cert,
                                              CertificateException certError)
        Determine what to do with a certificate (reject, accept temporarily, or accept permanently)
        Parameters:
        cert - A (probably invalid) certificate
        certError - An exception (or null) that caused the certificate to be considered invalid
        Returns:
        A CertificateAcceptance value that determines whether (and for how long) the certificate should be considered valid.