private static String toPrettyString(EnabledCredentials.Enum enabledCredential) {
        switch (enabledCredential) {
            case ACCESS_TOKEN:
                return "Athenz access token with X.509 identity certificate";
            case ROLE_TOKEN:
                return "Athenz role token (ZToken)";
            case ROLE_CERTIFICATE:
                return "Athenz X.509 role certificate";
            default:
                throw new IllegalArgumentException("Unknown credential type: " + enabledCredential);
        }
    }
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