AuthenticatedEncryptionSettings Class¶
Settings for configuring authenticated encryption algorithms.
- Namespace
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption
- Assemblies
- Microsoft.AspNetCore.DataProtection
Syntax¶
public sealed class AuthenticatedEncryptionSettings : IInternalAuthenticatedEncryptionSettings
-
class
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.
AuthenticatedEncryptionSettings
Properties¶
-
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.AuthenticatedEncryptionSettings.
EncryptionAlgorithm
¶ The algorithm to use for symmetric encryption (confidentiality).
Return type: Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.EncryptionAlgorithm public EncryptionAlgorithm EncryptionAlgorithm { get; set; }
-
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.AuthenticatedEncryptionSettings.
ValidationAlgorithm
¶ The algorithm to use for message authentication (tamper-proofing).
Return type: Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ValidationAlgorithm public ValidationAlgorithm ValidationAlgorithm { get; set; }
-
Methods¶
-
Validate
()¶ Validates that this
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.AuthenticatedEncryptionSettings
is well-formed, i.e., that the specified algorithms actually exist and that they can be instantiated properly. An exception will be thrown if validation fails.public void Validate()
-