DataProtectionBuilderExtensions.ProtectKeysWithDpapi Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| ProtectKeysWithDpapi(IDataProtectionBuilder) |
Configure les clés à chiffrer avec Windows DPAPI avant d’être conservées dans le stockage. La clé chiffrée est déchiffrable uniquement par le compte d’utilisateur Windows actuel. |
| ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean) |
Configure les clés à chiffrer avec Windows DPAPI avant d’être conservées dans le stockage. |
ProtectKeysWithDpapi(IDataProtectionBuilder)
Configure les clés à chiffrer avec Windows DPAPI avant d’être conservées dans le stockage. La clé chiffrée est déchiffrable uniquement par le compte d’utilisateur Windows actuel.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ ProtectKeysWithDpapi(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithDpapi(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder);
static member ProtectKeysWithDpapi : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithDpapi (builder As IDataProtectionBuilder) As IDataProtectionBuilder
Paramètres
- builder
- IDataProtectionBuilder
L’attribut IDataProtectionBuilder.
Retours
Référence à la IDataProtectionBuilder fin de cette opération.
Remarques
Cette API est uniquement prise en charge sur les plateformes Windows.
S’applique à
ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean)
Configure les clés à chiffrer avec Windows DPAPI avant d’être conservées dans le stockage.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ ProtectKeysWithDpapi(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, bool protectToLocalMachine);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithDpapi(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, bool protectToLocalMachine);
static member ProtectKeysWithDpapi : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * bool -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithDpapi (builder As IDataProtectionBuilder, protectToLocalMachine As Boolean) As IDataProtectionBuilder
Paramètres
- builder
- IDataProtectionBuilder
L’attribut IDataProtectionBuilder.
- protectToLocalMachine
- Boolean
« true » si la clé doit être déchiffrable par un utilisateur sur l'ordinateur local, « false » si la clé ne doit être déchiffrée que par le compte d'utilisateur actuel Windows.
Retours
Référence à la IDataProtectionBuilder fin de cette opération.
Remarques
Cette API est uniquement prise en charge sur les plateformes Windows.