次の方法で共有


NonceValidatorAsync Delegate

Definition

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

public delegate bool NonceValidatorAsync(SecurityKey key, SecurityToken signedHttpRequest, SignedHttpRequestValidationContext signedHttpRequestValidationContext, CancellationToken cancellationToken);
type NonceValidatorAsync = delegate of SecurityKey * SecurityToken * SignedHttpRequestValidationContext * CancellationToken -> bool
Public Delegate Function NonceValidatorAsync(key As SecurityKey, signedHttpRequest As SecurityToken, signedHttpRequestValidationContext As SignedHttpRequestValidationContext, cancellationToken As CancellationToken) As Boolean 

Parameters

key
SecurityKey

the key use to validate server nonce.

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

Expected to throw an appropriate exception if SignedHttpRequest replay is detected.

Applies to