class ApiKeysController {

    @RequestMapping(method = RequestMethod.GET)
    @PreAuthorize("hasAuthority('VIEW_API_KEYS')")
    public ResponseEntity<Collection<PublicApiKeyData>> list() {
        Collection<PersistentApiKeyType> keys = apiKeyService.listAll();
        return new ResponseEntity<>(publicApiKeyDataConverter.convert(keys), HttpStatus.OK);
    }

    @Autowired public  ApiKeysController(ApiKeyService apiKeyService, PublicApiKeyDataConverter publicApiKeyDataConverter);

}