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

Microsoft.IdentityModel.Tokens.SecurityTokenValidationException

Represents a security token validation exception.

Initializes a new instance of the SecurityTokenValidationException class.

public SecurityTokenValidationException(string message)

Initializes a new instance of the SecurityTokenValidationException class with a specified error message.

public SecurityTokenValidationException(string message, Exception innerException)

Initializes a new instance of the SecurityTokenValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Initializes a new instance of the SecurityTokenValidationException class.