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

Microsoft.IdentityModel.Tokens.SecurityTokenUnableToValidateException

This exception is thrown when a security token contained a key identifier but the key was not found by the runtime and when validation errors exist over the security token. This exception is not intended to be used as a signal to refresh keys.
public ValidationFailure ValidationFailure { get; set; }

Indicates the type of the validation failure.

Initializes a new instance of the SecurityTokenSignatureKeyNotFoundException class.

public SecurityTokenUnableToValidateException(ValidationFailure validationFailure, string message)

Initializes a new instance of the SecurityTokenSignatureKeyNotFoundException class.

Initializes a new instance of the SecurityTokenSignatureKeyNotFoundException class.

public SecurityTokenUnableToValidateException(string message, Exception innerException)

Initializes a new instance of the SecurityTokenSignatureKeyNotFoundException class.

Initializes a new instance of the SecurityTokenSignatureKeyNotFoundException class.