@ReadOperation
    @Operation(summary = "Get access and/or refresh tokens")
    public Collection<Ticket> getTokens() {
        return ticketRegistry.getObject().getTickets(ticket -> (ticket instanceof OAuth20AccessToken || ticket instanceof OAuth20RefreshToken) && !ticket.isExpired())
            .sorted(Comparator.comparing(Ticket::getId))
            .collect(Collectors.toList());
    }
Gets access tokens.

@return the access tokens
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/mgmt/OAuth20TokenManagementEndpoint.java