Class ExpirationTimeContext<T>
java.lang.Object
net.shibboleth.oidc.metadata.cache.ExpirationTimeContext<T>
- Type Parameters:
T- The metadata type.
Context to hold information pertaining to the computation of a metadata's expiration time.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpirationTimeContext(T metadataIn, Duration minimumCacheDuration, Duration maximumCacheDuration, Instant timeNow) Constructor. -
Method Summary
-
Field Details
-
metadata
The metadata to base the expiry time off. -
minCacheDuration
Minimum cache duration. -
maxCacheDuration
Maximum cache duration. -
now
The now time to base computation off.
-
-
Constructor Details
-
ExpirationTimeContext
public ExpirationTimeContext(@Nonnull T metadataIn, @Nonnull Duration minimumCacheDuration, @Nonnull Duration maximumCacheDuration, @Nonnull Instant timeNow) Constructor.- Parameters:
metadataIn- the metadata to base the expiry time off.minimumCacheDuration- minimum cache duration.maximumCacheDuration- maximum cache duration.timeNow- the now time to base computation off.
-
-
Method Details
-
getMetadata
Get the metadata.- Returns:
- Returns the metadata.
-
getMinCacheDuration
Get the minimum cache duration.- Returns:
- Returns the minCacheDuration.
-
getMaxCacheDuration
Get the maximum cache duration.- Returns:
- Returns the maxCacheDuration.
-
getNow
Get the time to use a 'now'.- Returns:
- Returns now.
-