private static OAuthBearerValidationResult doesNotExistResult(boolean required, String claimName) {
        return required ? OAuthBearerValidationResult.newFailure(String.format("Required claim missing: %s", claimName))
                : OAuthBearerValidationResult.newSuccess();
    }
Validate the given token's scope against the required scope. Every required
scope element (if any) must exist in the provided token's scope for the
validation to succeed.

@param token
           the required token for which the scope will to validate
@param requiredScope
           the optional required scope against which the given token's scope
           will be validated
@return the result of the validation
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/unsecured/OAuthBearerValidationUtils.java