LifetimeValidator Delegate
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 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
The 'not before' time found in the SecurityToken.
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
.