@Override
    public boolean matches(final X509Certificate attestationCertificate, final JsonNode parameters) {
        val fingerprints = parameters.get(FINGERPRINTS_KEY);
        if (fingerprints.isArray()) {
            try {
                val fingerprint = Hashing.sha1().hashBytes(attestationCertificate.getEncoded()).toString().toLowerCase(Locale.ENGLISH);
                for (val candidate : fingerprints) {
                    if (fingerprint.equals(candidate.asText().toLowerCase(Locale.ENGLISH))) {
                        return true;
                    }
                }
            } catch (final CertificateEncodingException e) {
                // Fall through to return false.
            }
        }
        return false;
    }
This is {@link FingerprintMatcher}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-webauthn-core/src/main/java/com/yubico/webauthn/attestation/matcher/FingerprintMatcher.java