DataProtectionBuilderExtensions.ProtectKeysWithDpapiNG Methode

Definition

Überlädt

ProtectKeysWithDpapiNG(IDataProtectionBuilder, String, DpapiNGProtectionDescriptorFlags)

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

ProtectKeysWithDpapiNG(IDataProtectionBuilder)

Konfiguriert Schlüssel, die mit Windows CNG DPAPI verschlüsselt werden sollen, bevor sie im Speicher gespeichert werden. Die Schlüssel können vom aktuellen Windows-Benutzerkonto entschlüsselt werden.

ProtectKeysWithDpapiNG(IDataProtectionBuilder, String, DpapiNGProtectionDescriptorFlags)

Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ ProtectKeysWithDpapiNG(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, System::String ^ protectionDescriptorRule, Microsoft::AspNetCore::DataProtection::XmlEncryption::DpapiNGProtectionDescriptorFlags flags);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithDpapiNG (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string protectionDescriptorRule, Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags flags);
static member ProtectKeysWithDpapiNG : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * string * Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithDpapiNG (builder As IDataProtectionBuilder, protectionDescriptorRule As String, flags As DpapiNGProtectionDescriptorFlags) As IDataProtectionBuilder

Parameter

protectionDescriptorRule
String

Die Deskriptorregelzeichenfolge, mit der das Schlüsselmaterial geschützt werden soll.

flags
DpapiNGProtectionDescriptorFlags

Flags, die an den Aufruf von "NCryptCreateProtectionDescriptor" übergeben werden sollen. Der Standardwert dieses Parameters ist None.

Gibt zurück

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

Hinweise

Weitere Informationen zu gültigen Werten für die Argumente und finden Sie https://msdn.microsoft.com/en-us/library/windows/desktop/hh769091(v=vs.85).aspx unter und https://msdn.microsoft.com/en-us/library/windows/desktop/hh706800(v=vs.85).aspxflags.protectionDescriptorRule Diese API wird nur unter Windows 8/Windows Server 2012 und höher unterstützt.

Gilt für:

ProtectKeysWithDpapiNG(IDataProtectionBuilder)

Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs
Quelle:
DataProtectionBuilderExtensions.cs

Konfiguriert Schlüssel, die mit Windows CNG DPAPI verschlüsselt werden sollen, bevor sie im Speicher gespeichert werden. Die Schlüssel können vom aktuellen Windows-Benutzerkonto entschlüsselt werden.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ ProtectKeysWithDpapiNG(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithDpapiNG (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder);
static member ProtectKeysWithDpapiNG : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithDpapiNG (builder As IDataProtectionBuilder) As IDataProtectionBuilder

Parameter

Gibt zurück

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

Hinweise

Weitere Informationen zu DPAPI-NG finden Sie https://msdn.microsoft.com/en-us/library/windows/desktop/hh706794(v=vs.85).aspx unter. Diese API wird nur unter Windows 8/Windows Server 2012 und höher unterstützt.

Gilt für: