ManagedAuthenticatedEncryptorConfiguration Class

Definition

Represents a configured authenticated encryption mechanism which uses managed SymmetricAlgorithm and KeyedHashAlgorithm types.

C#
public sealed class ManagedAuthenticatedEncryptorConfiguration
C#
public sealed class ManagedAuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration
Inheritance
ManagedAuthenticatedEncryptorConfiguration
Inheritance
ManagedAuthenticatedEncryptorConfiguration
Implements

Constructors

Properties

EncryptionAlgorithmKeySize

The length (in bits) of the key that will be used for symmetric encryption. This property is required to have a value.

EncryptionAlgorithmType

The type of the algorithm to use for symmetric encryption. The type must subclass SymmetricAlgorithm. This property is required to have a value.

Settings
ValidationAlgorithmType

The type of the algorithm to use for validation. Type type must subclass KeyedHashAlgorithm. This property is required to have a value.

Methods

CreateNewDescriptor()

Creates a new IAuthenticatedEncryptorDescriptor instance based on this configuration. The newly-created instance contains unique key material and is distinct from all other descriptors created by the CreateNewDescriptor() method.

Applies to

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0