Class FingerprintStrategy

    • Constructor Detail

      • FingerprintStrategy

        public FingerprintStrategy​(String fingerprint)
    • Method Detail

      • checkAcceptance

        public CertificateAcceptance checkAcceptance​(Certificate genericCert,
                                                     CertificateException certError)
        Description copied from interface: InvalidCertificateStrategy
        Determine what to do with a certificate (reject, accept temporarily, or accept permanently)
        Specified by:
        checkAcceptance in interface InvalidCertificateStrategy
        Parameters:
        genericCert - 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.