class KeycloakTokenValidator {

  public void validate(final String keycloakToken) throws KeycloakException {
    if (!isValid(keycloakToken)) {
      throw new KeycloakException("Keycloak token must have '" + BEARER_PREFIX + "' prefix");
    }
  }

}