DataProtectionBuilderExtensions.ProtectKeysWithDpapi Methode

Definition

Überlädt

ProtectKeysWithDpapi(IDataProtectionBuilder)

Konfiguriert Schlüssel, die mit Windows DPAPI verschlüsselt werden sollen, bevor sie im Speicher gespeichert werden. Der verschlüsselte Schlüssel kann nur vom aktuellen Windows-Benutzerkonto entschlüsselt werden.

ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean)

Konfiguriert Schlüssel, die mit Windows DPAPI verschlüsselt werden sollen, bevor sie im Speicher gespeichert werden.

ProtectKeysWithDpapi(IDataProtectionBuilder)

Konfiguriert Schlüssel, die mit Windows DPAPI verschlüsselt werden sollen, bevor sie im Speicher gespeichert werden. Der verschlüsselte Schlüssel kann nur vom aktuellen Windows-Benutzerkonto entschlüsselt werden.

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

Parameter

Gibt zurück

Ein Verweis auf den IDataProtectionBuilder , nachdem dieser Vorgang abgeschlossen wurde.

Hinweise

Diese API wird nur auf Windows-Plattformen unterstützt.

Gilt für:

ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean)

Konfiguriert Schlüssel, die mit Windows DPAPI verschlüsselt werden sollen, bevor sie im Speicher gespeichert werden.

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

Parameter

protectToLocalMachine
Boolean

"true", wenn der Schlüssel durch eine beliebige Verwendung auf dem lokalen Computer entschlüsselt werden soll, "false", wenn der Schlüssel nur vom aktuellen Windows-Benutzerkonto entschlüsselt werden soll.

Gibt zurück

Ein Verweis auf den IDataProtectionBuilder , nachdem dieser Vorgang abgeschlossen wurde.

Hinweise

Diese API wird nur auf Windows-Plattformen unterstützt.

Gilt für: