public class OAuthAccessTokenExpirationPolicy extends AbstractCasExpirationPolicy
OAuthAccessTokenExpirationPolicy
.Modifier and Type | Class and Description |
---|---|
static class |
OAuthAccessTokenExpirationPolicy.OAuthAccessTokenSovereignExpirationPolicy
An expiration policy that is independent from the parent ticket-granting ticket.
|
Constructor and Description |
---|
OAuthAccessTokenExpirationPolicy(long maxTimeToLive,
long timeToKill) |
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.
|
protected boolean |
isAccessTokenExpired(TicketState ticketState)
Is access token expired ?.
|
boolean |
isExpired(TicketState ticketState)
Method to determine if a Ticket has expired or not, based on the policy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getTimeToLive
public OAuthAccessTokenExpirationPolicy(long maxTimeToLive, long timeToKill)
public 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 isAccessTokenExpired(TicketState ticketState)
ticketState
- the ticket state