GetTokenReplayCacheEntryExpirationTime Method
Collapse the table of content
Expand the table of content

Saml2SecurityTokenHandler.GetTokenReplayCacheEntryExpirationTime Method (Saml2SecurityToken)

.NET Framework 4.6 and 4.5

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(
	Saml2SecurityToken token


Type: System.IdentityModel.Tokens.Saml2SecurityToken

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
© 2015 Microsoft