AlgorithmValidationDelegate 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 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.