Compartilhar via


LifetimeValidator Delegate

Definition

Validates the lifetime of the security token.

public delegate bool LifetimeValidator(DateTime? notBefore, DateTime? expires, SecurityToken securityToken, TokenValidationParameters validationParameters);
type LifetimeValidator = delegate of Nullable<DateTime> * Nullable<DateTime> * SecurityToken * TokenValidationParameters -> bool
Public Delegate Function LifetimeValidator(notBefore As Nullable(Of DateTime), expires As Nullable(Of DateTime), securityToken As SecurityToken, validationParameters As TokenValidationParameters) As Boolean 

Parameters

notBefore
Nullable<DateTime>

The 'not before' time found in the SecurityToken.

expires
Nullable<DateTime>

The 'expiration' time found in the SecurityToken.

securityToken
SecurityToken

The SecurityToken being validated.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Return Value

true if the lifetime is valid; otherwise, false.

Applies to