@ JsonIgnore protected boolean isAccessTokenExpired ( final TicketState ticketState ) { val currentSystemTime = ZonedDateTime . now ( ZoneOffset . UTC ) ; val creationTime = ticketState . getCreationTime ( ) ; var expirationTime = creationTime . plus ( this . maxTimeToLiveInSeconds , ChronoUnit . SECONDS ) ; if ( currentSystemTime . isAfter ( expirationTime ) ) { LOGGER . debug ( "Access token is expired because the time since creation is greater than maxTimeToLiveInSeconds" ) ; return true ; } val expirationTimeToKill = ticketState . getLastTimeUsed ( ) . plus ( this . timeToKillInSeconds , ChronoUnit . SECONDS ) ; if ( currentSystemTime . isAfter ( expirationTimeToKill ) ) { LOGGER . debug ( "Access token is expired because the time since last use is greater than timeToKillInSeconds" ) ; return true ; } return false ; }
Is access token expired ? .