private static Optional<X509Certificate> getClientCertificate(DiscFilterRequest request) {
        List<X509Certificate> certificates = request.getClientCertificateChain();
        if (certificates.isEmpty()) return Optional.empty();
        return Optional.of(certificates.get(0));
    }
An Athenz security filter that uses a configured action and resource name to control access.

@author bjorncs
jdisc-security-filters/src/main/java/com/yahoo/jdisc/http/filter/security/athenz/AthenzAuthorizationFilter.java