DataProtectionBuilderExtensions.ProtectKeysWithDpapi Metoda

Definice

Přetížení

ProtectKeysWithDpapi(IDataProtectionBuilder)

Nakonfiguruje klíče pro šifrování pomocí rozhraní Windows DPAPI před uložením do úložiště. Šifrovaný klíč bude dešifrovatelný pouze aktuálním uživatelským účtem Systému Windows.

ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean)

Nakonfiguruje klíče pro šifrování pomocí rozhraní Windows DPAPI před uložením do úložiště.

ProtectKeysWithDpapi(IDataProtectionBuilder)

Nakonfiguruje klíče pro šifrování pomocí rozhraní Windows DPAPI před uložením do úložiště. Šifrovaný klíč bude dešifrovatelný pouze aktuálním uživatelským účtem Systému 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

Parametry

Návraty

IDataProtectionBuilder

Odkaz na IDataProtectionBuilder po dokončení této operace.

Poznámky

Toto rozhraní API je podporováno pouze na platformách Windows.

Platí pro

ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean)

Nakonfiguruje klíče pro šifrování pomocí rozhraní Windows DPAPI před uložením do úložiště.

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

Parametry

protectToLocalMachine
Boolean

"true", pokud by měl být klíč dešifrovatelný jakýmkoli použitím na místním počítači, "false", pokud by klíč měl být dešifrovatelný pouze aktuálním uživatelským účtem Systému Windows.

Návraty

IDataProtectionBuilder

Odkaz na IDataProtectionBuilder po dokončení této operace.

Poznámky

Toto rozhraní API je podporováno pouze na platformách Windows.

Platí pro