public class OAuthRefreshTokenExpirationPolicy extends AbstractCasExpirationPolicy
Modifier and Type | Class and Description |
---|---|
static class |
OAuthRefreshTokenExpirationPolicy.OAuthRefreshTokenSovereignExpirationPolicy
An expiration policy that is independent from the parent ticket-granting ticket.
|
Constructor and Description |
---|
OAuthRefreshTokenExpirationPolicy(long timeToKillInSeconds)
Instantiates a new OAuth refresh token expiration policy.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getTimeToIdle()
Describes the idle time duration for the item.
|
java.lang.Long |
getTimeToLive()
Describes the time duration where this policy should consider the item alive.
|
boolean |
isExpired(TicketState ticketState)
Method to determine if a Ticket has expired or not, based on the policy.
|
protected boolean |
isRefreshTokenExpired(TicketState ticketState)
Is refresh token expired ?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getTimeToLive
public OAuthRefreshTokenExpirationPolicy(long timeToKillInSeconds)
timeToKillInSeconds
- the time to kill in secondspublic boolean isExpired(TicketState ticketState)
ExpirationPolicy
isExpired
in interface ExpirationPolicy
isExpired
in class AbstractCasExpirationPolicy
ticketState
- The snapshot of the current ticket statepublic java.lang.Long getTimeToLive()
ExpirationPolicy
public java.lang.Long getTimeToIdle()
ExpirationPolicy
protected boolean isRefreshTokenExpired(TicketState ticketState)
ticketState
- the ticket state