Język

AuthenticatedEncryptionProvider(SecurityKey, String) Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy używanej AuthenticatedEncryptionProvider do szyfrowania i odszyfrowywania.

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)

Parametry

key
SecurityKey

Będą SecurityKey one używane na potrzeby operacji kryptograficznych.

algorithm
String

Algorytm szyfrowania do użycia.

Wyjątki

Zgłaszany, jeśli algorithm ma wartość null lub biały znak.

Zgłaszany, jeśli rozmiar klucza nie jest wystarczająco duży.

Zgłaszany, jeśli element symmetricSignatureProvider nie został utworzony.

Dotyczy