Interface LifecycleAwareSessionManagerSupport.RefreshTrigger
- All Known Implementing Classes:
LifecycleAwareSessionManagerSupport.FixedTimeoutRefreshTrigger
- Enclosing class:
- LifecycleAwareSessionManagerSupport
public static interface LifecycleAwareSessionManagerSupport.RefreshTrigger
Common interface for trigger objects that determine the next execution time of a
refresh task.
-
Method Summary
Modifier and TypeMethodDescriptiongetValidTtlThreshold
(LoginToken loginToken) Returns the minimum TTL duration to consider a token valid after renewal.nextExecution
(LoginToken loginToken) Determine the next execution time according to the given trigger context.default Date
nextExecutionTime
(LoginToken loginToken) Deprecated.
-
Method Details
-
nextExecutionTime
Deprecated.since 3.1, useinstead
.Determine the next execution time according to the given trigger context.- Parameters:
loginToken
- login token encapsulating renewability and lease duration.- Returns:
- the next execution time as defined by the trigger, or
null
if the trigger won't fire anymore.
-
nextExecution
Determine the next execution time according to the given trigger context.- Parameters:
loginToken
- login token encapsulating renewability and lease duration.- Returns:
- the next execution time as defined by the trigger, or
null
if the trigger won't fire anymore. - Since:
- 3.1
-
getValidTtlThreshold
Returns the minimum TTL duration to consider a token valid after renewal. Tokens with a shorter TTL are revoked and considered expired.- Parameters:
loginToken
- the login token after renewal.- Returns:
- minimum TTL
Duration
to consider a token valid. - Since:
- 2.0
-
instead
.