Partilhar via


AlgorithmValidator Delegate

Definition

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.

Applies to