SamlSecurityTokenHandler.GetTokenReplayCacheEntryExpirationTime Method

Definition

Returns the time until which the token should be held in the token replay cache.

C#
protected virtual DateTime GetTokenReplayCacheEntryExpirationTime(System.IdentityModel.Tokens.SamlSecurityToken token);

Parameters

token
SamlSecurityToken

The token for which to return the expiration time.

Returns

A DateTime that represents the expiration time.

Exceptions

token is null.

Remarks

By default, this method returns the NotOnOrAfter of the SAML Condition if present.

If that value does not exist, it returns the NotOnOrAfter of the first SubjectConfirmationData.

This function will never return a value further from the current time (Now) than Configuration.TokenReplayCacheExpirationPeriod.

Applies to

Produkt Versiounen
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1