DataProtectionBuilderExtensions.ProtectKeysWithDpapi Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| Nome | Descrizione |
|---|---|
| ProtectKeysWithDpapi(IDataProtectionBuilder) |
Configura le chiavi da crittografare con Windows DPAPI prima di essere salvate in modo permanente nell'archiviazione. La chiave crittografata sarà decrittografabile solo dall'account utente corrente Windows. |
| ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean) |
Configura le chiavi da crittografare con Windows DPAPI prima di essere salvate in modo permanente nell'archiviazione. |
ProtectKeysWithDpapi(IDataProtectionBuilder)
Configura le chiavi da crittografare con Windows DPAPI prima di essere salvate in modo permanente nell'archiviazione. La chiave crittografata sarà decrittografabile solo dall'account utente corrente Windows.
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
Parametri
- builder
- IDataProtectionBuilder
Valori restituiti
Riferimento all'oggetto dopo il IDataProtectionBuilder completamento di questa operazione.
Commenti
Questa API è supportata solo nelle piattaforme Windows.
Si applica a
ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean)
Configura le chiavi da crittografare con Windows DPAPI prima di essere salvate in modo permanente nell'archiviazione.
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
Parametri
- builder
- IDataProtectionBuilder
- protectToLocalMachine
- Boolean
'true' se la chiave deve essere decrittografabile da qualsiasi utente nel computer locale, 'false' se la chiave deve essere decrittografabile solo dall'account utente corrente Windows.
Valori restituiti
Riferimento all'oggetto dopo il IDataProtectionBuilder completamento di questa operazione.
Commenti
Questa API è supportata solo nelle piattaforme Windows.