class TokensApiController implements TokensApi {

    @PreAuthorize("hasAuthority('VIEW_KEYS')")
    @Override
    public ResponseEntity<List<Token>> getTokens() {
        List<TokenInfo> tokenInfos = tokenService.getAllTokens();
        List<Token> tokens = tokenConverter.convert(tokenInfos);
        return new ResponseEntity<>(tokens, HttpStatus.OK);
    }

    @Autowired public  TokensApiController(TokenService tokenService,
            TokenConverter tokenConverter);

}