@ ReadOperation public Ticket getToken ( @ Selector final String ticketId ) { var ticket = ( Ticket ) ticketRegistry . getTicket ( ticketId , AccessToken . class ) ; if ( ticket == null ) { ticket = ticketRegistry . getTicket ( ticketId , RefreshToken . class ) ; } if ( ticket == null ) { LOGGER . debug ( "Ticket [{}] is not found" , ticketId ) ; return null ; } if ( ticket . isExpired ( ) ) { LOGGER . debug ( "Ticket [{}] is has expired" , ticketId ) ; return null ; } return ticket ; }
Gets access token .