SamlSecurityTokenHandler.ValidateLifetime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates the lifetime of a SamlSecurityToken.
protected virtual void ValidateLifetime (DateTime? notBefore, DateTime? expires, Microsoft.IdentityModel.Tokens.SecurityToken securityToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ValidateLifetime : Nullable<DateTime> * Nullable<DateTime> * Microsoft.IdentityModel.Tokens.SecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
override this.ValidateLifetime : Nullable<DateTime> * Nullable<DateTime> * Microsoft.IdentityModel.Tokens.SecurityToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> unit
Protected Overridable Sub ValidateLifetime (notBefore As Nullable(Of DateTime), expires As Nullable(Of DateTime), securityToken As SecurityToken, validationParameters As TokenValidationParameters)
Parameters
The DateTime value found in the SamlSecurityToken.
The DateTime value found in the SamlSecurityToken.
- securityToken
- SecurityToken
The SamlSecurityToken being validated.
- validationParameters
- TokenValidationParameters
The TokenValidationParameters to be used for validating the token.
Remarks
ValidateLifetime(Nullable<DateTime>, Nullable<DateTime>, SecurityToken, TokenValidationParameters) for additional details.