Edit

Share via


Saml2SecurityTokenHandler.GetTokenReplayCacheEntryExpirationTime Method

Definition

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

protected:
 virtual DateTime GetTokenReplayCacheEntryExpirationTime(System::IdentityModel::Tokens::Saml2SecurityToken ^ token);
protected virtual DateTime GetTokenReplayCacheEntryExpirationTime (System.IdentityModel.Tokens.Saml2SecurityToken token);
abstract member GetTokenReplayCacheEntryExpirationTime : System.IdentityModel.Tokens.Saml2SecurityToken -> DateTime
override this.GetTokenReplayCacheEntryExpirationTime : System.IdentityModel.Tokens.Saml2SecurityToken -> DateTime
Protected Overridable Function GetTokenReplayCacheEntryExpirationTime (token As Saml2SecurityToken) As DateTime

Parameters

token
Saml2SecurityToken

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