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

Microsoft.IdentityModel.Tokens.SecurityTokenArgumentException

Throw this exception when a received SecurityToken has invalid arguments.

Initializes a new instance of the SecurityTokenException class.

public SecurityTokenArgumentException(string message)

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

public SecurityTokenArgumentException(string message, Exception innerException)

Initializes a new instance of the SecurityTokenException 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 SecurityTokenArgumentException class.