private static int getTimeToLive ( final Ticket ticket ) { val expTime = ticket . getExpirationPolicy ( ) . getTimeToLive ( ) . intValue ( ) ; if ( TimeUnit . SECONDS . toDays ( expTime ) >= MAX_EXP_TIME_IN_DAYS ) { LOGGER . warn ( "Any expiration time larger than [{}] days in seconds is considered absolute (as in a Unix time stamp) " + "anything smaller is considered relative in seconds." , MAX_EXP_TIME_IN_DAYS ) ; } return expTime ; }
Get the expiration policy value of the ticket in seconds .