Share via


SignatureValidatorAsync Delegate

Definition

A delegate that will take control over SignedHttpRequest signature validation, if set.

public delegate System.Threading.Tasks.Task<Microsoft.IdentityModel.Tokens.SecurityKey> SignatureValidatorAsync(SecurityKey popKey, SecurityToken signedHttpRequest, SignedHttpRequestValidationContext signedHttpRequestValidationContext, CancellationToken cancellationToken);
type SignatureValidatorAsync = delegate of SecurityKey * SecurityToken * SignedHttpRequestValidationContext * CancellationToken -> Task<SecurityKey>
Public Delegate Function SignatureValidatorAsync(popKey As SecurityKey, signedHttpRequest As SecurityToken, signedHttpRequestValidationContext As SignedHttpRequestValidationContext, cancellationToken As CancellationToken) As Task(Of SecurityKey) 

Parameters

popKey
SecurityKey

A resolved PoP key.

signedHttpRequest
SecurityToken

A SignedHttpRequest.

signedHttpRequestValidationContext
SignedHttpRequestValidationContext

A structure that wraps parameters needed for SignedHttpRequest validation.

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Return Value

A SecurityKey used to validate a signature of the signedHttpRequest, otherwise expected to throw an appropriate exception.

Applies to