AsymmetricSignatureProvider Constructors

Definition

Overloads

AsymmetricSignatureProvider(SecurityKey, String)

Initializes a new instance of the AsymmetricSignatureProvider class used to create and verify signatures.

AsymmetricSignatureProvider(SecurityKey, String, Boolean)

Initializes a new instance of the AsymmetricSignatureProvider class used for creating and verifying signatures.

AsymmetricSignatureProvider(SecurityKey, String)

Initializes a new instance of the AsymmetricSignatureProvider class used to create and verify signatures.

public AsymmetricSignatureProvider (Microsoft.IdentityModel.Tokens.SecurityKey key, string algorithm);
new Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider : Microsoft.IdentityModel.Tokens.SecurityKey * string -> Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider
Public Sub New (key As SecurityKey, algorithm As String)

Parameters

key
SecurityKey

The SecurityKey that will be used for signature operations.

algorithm
String

The signature algorithm to be used.

Applies to

AsymmetricSignatureProvider(SecurityKey, String, Boolean)

Initializes a new instance of the AsymmetricSignatureProvider class used for creating and verifying signatures.

public AsymmetricSignatureProvider (Microsoft.IdentityModel.Tokens.SecurityKey key, string algorithm, bool willCreateSignatures);
new Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider : Microsoft.IdentityModel.Tokens.SecurityKey * string * bool -> Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider
Public Sub New (key As SecurityKey, algorithm As String, willCreateSignatures As Boolean)

Parameters

key
SecurityKey

The SecurityKey that will be used for signature operations.

algorithm
String

The signature algorithm to be used.

willCreateSignatures
Boolean

If true, the provider will be used for creating signatures; otherwise, it will be used for verifying signatures.

Exceptions

Thrown if algorithm is null or empty.

Thrown if the runtime is unable to create a suitable cryptographic provider.

Thrown if the SecurityKey and algorithm pair are not supported.

Thrown if KeySize is less than the required size for verifying signatures.

Applies to