SamlSecurityTokenHandler.GetTokenReplayCacheEntryExpirationTime Method (SamlSecurityToken)

.NET Framework (current version)

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

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual DateTime GetTokenReplayCacheEntryExpirationTime(
	SamlSecurityToken token


Type: System.IdentityModel.Tokens.SamlSecurityToken

The token for which to return the expiration time.

Return Value

Type: System.DateTime

A DateTime that represents the expiration time.

Exception Condition

token is null.

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.

.NET Framework
Available since 4.5
Return to top