class AuthenticationController {

  @RequestMapping(value = "/validate", method = POST, consumes = APPLICATION_JSON_UTF8_VALUE, produces = TEXT_PLAIN_VALUE)
  @ResponseBody
  public String validate(@RequestBody Token token) {
    logger.info("Received validation request of token {}", token);
    return authenticationService.validate(token.getToken());
  }

  @Autowired  AuthenticationController(
      AuthenticationService authenticationService,
      AuthorizationHeaderGenerator authorizationHeaderGenerator);

}