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
indicates if this SymmetricSignatureProvider will be used to create signatures.
Exceptions
'algorithm' is null or empty.
If SecurityKey and algorithm pair are not supported.
'SecurityKey.KeySize' is smaller than MinimumSymmetricKeySizeInBits.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈