private <T> T getClaim(ClaimSupplier<T> supplier, String claimName) throws ValidateException {
        try {
            T value = supplier.get();
            log.debug("getClaim - {}: {}", claimName, value);
            return value;
        } catch (MalformedClaimException e) {
            throw new ValidateException(String.format("Could not extract the '%s' claim from the access token", claimName), e);
        }
    }
Accepts an OAuth JWT access token in base-64 encoded format, validates, and returns an
OAuthBearerToken.

@param accessToken Non-<code>null</code> JWT access token
@return {@link OAuthBearerToken}
@throws ValidateException Thrown on errors performing validation of given token
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/secured/ValidatorAccessTokenValidator.java