LifetimeValidationDelegate 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.
Definition for delegate that will validate the lifetime of a SecurityToken.
public delegate Microsoft.IdentityModel.Tokens.Experimental.ValidationResult<Microsoft.IdentityModel.Tokens.Experimental.ValidatedLifetime,Microsoft.IdentityModel.Tokens.Experimental.ValidationError> LifetimeValidationDelegate(DateTime? notBefore, DateTime? expires, SecurityToken? securityToken, ValidationParameters validationParameters, CallContext callContext);
type LifetimeValidationDelegate = delegate of Nullable<DateTime> * Nullable<DateTime> * SecurityToken * ValidationParameters * CallContext -> ValidationResult<ValidatedLifetime, ValidationError>
Public Delegate Function LifetimeValidationDelegate(notBefore As Nullable(Of DateTime), expires As Nullable(Of DateTime), securityToken As SecurityToken, validationParameters As ValidationParameters, callContext As CallContext) As ValidationResult(Of ValidatedLifetime, ValidationError)
Parameters
The 'notBefore' time found in the SecurityToken.
The 'expiration' time found in the SecurityToken.
- securityToken
- SecurityToken
The SecurityToken that is being validated.
- validationParameters
- ValidationParameters
The TokenValidationParameters to be used for validating the token.
- callContext
- CallContext
The CallContext that contains call information.
Return Value
A ValidationResult<TResult,TError> that contains the results of validating the issuer.
Remarks
This delegate is not expected to throw.