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 Type
    Method
    Description
    Returns the minimum TTL duration to consider a token valid after renewal.
    Determine the next execution time according to the given trigger context.
  • Method Details

    • nextExecutionTime

      Date nextExecutionTime(LoginToken loginToken)
      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
    • getValidTtlThreshold

      Duration getValidTtlThreshold(LoginToken loginToken)
      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