AlgorithmValidator 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.
Validates the cryptographic algorithm used.
public delegate bool AlgorithmValidator(string algorithm, SecurityKey securityKey, SecurityToken securityToken, TokenValidationParameters validationParameters);
type AlgorithmValidator = delegate of string * SecurityKey * SecurityToken * TokenValidationParameters -> bool
Public Delegate Function AlgorithmValidator(algorithm As String, securityKey As SecurityKey, securityToken As SecurityToken, validationParameters As TokenValidationParameters) As Boolean
Parameters
- algorithm
- String
The algorithm to be validated.
- securityKey
- SecurityKey
The SecurityKey used to sign the SecurityToken.
- securityToken
- SecurityToken
The SecurityToken being validated.
- validationParameters
- TokenValidationParameters
The TokenValidationParameters to be used for validating the token.
Return Value
true
if the algorithm is valid; otherwise, false
.