<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.19.0" />

Microsoft.IdentityModel.Tokens.Experimental.AlgorithmValidationError

Represents a validation error when the SecurityToken algorithm is not valid. If available, the invalid algorithm is stored in InvalidAlgorithm.
public string InvalidAlgorithm { get; }

The algorithm that could not be validated.

public AlgorithmValidationError(MessageDetail messageDetail, ValidationFailureType validationFailure, StackFrame stackFrame, string invalidAlgorithm)

Initializes a new instance of the AlgorithmValidationError class.

public AlgorithmValidationError(MessageDetail messageDetail, ValidationFailureType validationFailure, StackFrame stackFrame, string invalidAlgorithm, Exception innerException)

Initializes a new instance of the AlgorithmValidationError class.