Udostępnij przez


LifetimeValidationDelegate Delegate

Definition

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

notBefore
Nullable<DateTime>

The 'notBefore' time found in the SecurityToken.

expires
Nullable<DateTime>

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.

Applies to