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

Microsoft.IdentityModel.Tokens.SecurityTokenKeyWrapException

Represents a key wrap exception when encryption failed.

Initializes a new instance of the SecurityTokenKeyWrapException class.

public SecurityTokenKeyWrapException(string message)

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

public SecurityTokenKeyWrapException(string message, Exception innerException)

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