SymmetricSignatureProvider Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SymmetricSignatureProvider(SecurityKey, String) |
Initializes a new instance of the SymmetricSignatureProvider class that uses an SecurityKey to create and / or verify signatures over a array of bytes. |
SymmetricSignatureProvider(SecurityKey, String, Boolean) |
Initializes a new instance of the SymmetricSignatureProvider class that uses an SecurityKey to create and / or verify signatures over a array of bytes. |
SymmetricSignatureProvider(SecurityKey, String)
Initializes a new instance of the SymmetricSignatureProvider class that uses an SecurityKey to create and / or verify signatures over a array of bytes.
public SymmetricSignatureProvider (Microsoft.IdentityModel.Tokens.SecurityKey key, string algorithm);
new Microsoft.IdentityModel.Tokens.SymmetricSignatureProvider : Microsoft.IdentityModel.Tokens.SecurityKey * string -> Microsoft.IdentityModel.Tokens.SymmetricSignatureProvider
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 use.
Exceptions
'algorithm' is null or empty.
If SecurityKey and algorithm pair are not supported.
'SecurityKey.KeySize' is smaller than MinimumSymmetricKeySizeInBits.
Applies to
SymmetricSignatureProvider(SecurityKey, String, Boolean)
Initializes a new instance of the SymmetricSignatureProvider class that uses an SecurityKey to create and / or verify signatures over a array of bytes.
public SymmetricSignatureProvider (Microsoft.IdentityModel.Tokens.SecurityKey key, string algorithm, bool willCreateSignatures);
new Microsoft.IdentityModel.Tokens.SymmetricSignatureProvider : Microsoft.IdentityModel.Tokens.SecurityKey * string * bool -> Microsoft.IdentityModel.Tokens.SymmetricSignatureProvider
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 use.
- willCreateSignatures
- Boolean
If true, the provider will be used for creating signatures.
Exceptions
'algorithm' is null or empty.
If SecurityKey and algorithm pair are not supported.
'SecurityKey.KeySize' is smaller than MinimumSymmetricKeySizeInBits.