AuthenticatedEncryptionProvider(SecurityKey, String) Constructor
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.
Initializes a new instance of the AuthenticatedEncryptionProvider class used for encryption and decryption.
public AuthenticatedEncryptionProvider (Microsoft.IdentityModel.Tokens.SecurityKey key, string algorithm);
new Microsoft.IdentityModel.Tokens.AuthenticatedEncryptionProvider : Microsoft.IdentityModel.Tokens.SecurityKey * string -> Microsoft.IdentityModel.Tokens.AuthenticatedEncryptionProvider
Public Sub New (key As SecurityKey, algorithm As String)
Parameters
- key
- SecurityKey
The SecurityKey that will be used for crypto operations.
- algorithm
- String
The encryption algorithm to apply.
Exceptions
'algorithm' is null or whitespace.
key size is not large enough.
a symmetricSignatureProvider is not created.
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: