public static Errors authorizationError(ResourceType resourceType) {
        switch (resourceType) {
            case TOPIC:
                return Errors.TOPIC_AUTHORIZATION_FAILED;
            case GROUP:
                return Errors.GROUP_AUTHORIZATION_FAILED;
            case CLUSTER:
                return Errors.CLUSTER_AUTHORIZATION_FAILED;
            case TRANSACTIONAL_ID:
                return Errors.TRANSACTIONAL_ID_AUTHORIZATION_FAILED;
            case DELEGATION_TOKEN:
                return Errors.DELEGATION_TOKEN_AUTHORIZATION_FAILED;
            default:
                throw new IllegalArgumentException("Authorization error type not known");
        }
    }
Parse JSON representation of ACLs
@param bytes of acls json string

<p>
        {
            "version": 1,
            "acls": [
                {
                    "host":"host1",
                    "permissionType": "Deny",
                    "operation": "Read",
                    "principal": "User:alice"
                }
            ]
        }
</p>

@return set of AclEntry objects from the JSON string
server/src/main/java/org/apache/kafka/security/authorizer/AclEntry.java