Share via


AlgorithmValidationDelegate Delegate

Definition

Definition for delegate that will validate a given algorithm for a SecurityKey.

public delegate Microsoft.IdentityModel.Tokens.Experimental.ValidationResult<string,Microsoft.IdentityModel.Tokens.Experimental.AlgorithmValidationError> AlgorithmValidationDelegate(string algorithm, SecurityKey securityKey, SecurityToken securityToken, ValidationParameters validationParameters, CallContext callContext);
type AlgorithmValidationDelegate = delegate of string * SecurityKey * SecurityToken * ValidationParameters * CallContext -> ValidationResult<string, AlgorithmValidationError>
Public Delegate Function AlgorithmValidationDelegate(algorithm As String, securityKey As SecurityKey, securityToken As SecurityToken, validationParameters As ValidationParameters, callContext As CallContext) As ValidationResult(Of String, AlgorithmValidationError) 

Parameters

algorithm
String

The algorithm to be validated.

securityKey
SecurityKey

The SecurityKey that signed the SecurityToken.

securityToken
SecurityToken

The SecurityToken being validated.

validationParameters
ValidationParameters

TokenValidationParameters required for validation.

callContext
CallContext

Return Value

A ValidationResult<TResult,TError>that contains the results of validating the algorithm.

Remarks

This delegate is not expected to throw.

Applies to