Share via


IAuthenticatedEncryptorFactory.CreateEncryptorInstance(IKey) Metodo

Definizione

Crea un'istanza IAuthenticatedEncryptor basata sull'oggetto specificato Descriptor.

public:
 Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::IAuthenticatedEncryptor ^ CreateEncryptorInstance(Microsoft::AspNetCore::DataProtection::KeyManagement::IKey ^ key);
public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor CreateEncryptorInstance (Microsoft.AspNetCore.DataProtection.KeyManagement.IKey key);
public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor? CreateEncryptorInstance (Microsoft.AspNetCore.DataProtection.KeyManagement.IKey key);
abstract member CreateEncryptorInstance : Microsoft.AspNetCore.DataProtection.KeyManagement.IKey -> Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor
Public Function CreateEncryptorInstance (key As IKey) As IAuthenticatedEncryptor

Parametri

key
IKey

Restituisce

Istanza di IAuthenticatedEncryptor.

Commenti

Per un determinato Descriptoroggetto , le due istanze restituite da questo metodo devono essere considerate equivalenti, ad esempio il payload restituito dal metodo di Encrypt(ArraySegment<Byte>, ArraySegment<Byte>) uno deve essere utilizzabile dal metodo dell'altro Decrypt(ArraySegment<Byte>, ArraySegment<Byte>) .

Si applica a