DataProtectionBuilderExtensions.ProtectKeysWithDpapiNG Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
ProtectKeysWithDpapiNG(IDataProtectionBuilder, String, DpapiNGProtectionDescriptorFlags) |
Anahtarları depolamada kalıcı hale getirilmeden önce Windows CNG DPAPI ile şifrelenecek şekilde yapılandırılır. |
ProtectKeysWithDpapiNG(IDataProtectionBuilder) |
Anahtarları depolamada kalıcı hale getirilmeden önce Windows CNG DPAPI ile şifrelenecek şekilde yapılandırılır. Anahtarların şifresi geçerli Windows kullanıcı hesabı tarafından çözülebilir. |
ProtectKeysWithDpapiNG(IDataProtectionBuilder, String, DpapiNGProtectionDescriptorFlags)
Anahtarları depolamada kalıcı hale getirilmeden önce Windows CNG DPAPI ile şifrelenecek şekilde yapılandırılır.
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
Parametreler
- protectionDescriptorRule
- String
Anahtar malzemenin korunacak tanımlayıcı kural dizesi.
'NCryptCreateProtectionDescriptor' çağrısına geçirilmesi gereken bayraklar. Bu parametrenin varsayılan değeridir None.
Döndürülenler
Bu işlem tamamlandıktan sonra öğesine IDataProtectionBuilder başvuru.
Açıklamalar
ve https://msdn.microsoft.com/en-us/library/windows/desktop/hh706800(v=vs.85).aspx bağımsız değişkenleri için geçerli değerler hakkında daha fazla bilgi için protectionDescriptorRule
bkzhttps://msdn.microsoft.com/en-us/library/windows/desktop/hh769091(v=vs.85).aspx. veflags
. Bu API yalnızca Windows 8 / Windows Server 2012 ve üzeri sürümlerde desteklenir.
Şunlara uygulanır
ProtectKeysWithDpapiNG(IDataProtectionBuilder)
Anahtarları depolamada kalıcı hale getirilmeden önce Windows CNG DPAPI ile şifrelenecek şekilde yapılandırılır. Anahtarların şifresi geçerli Windows kullanıcı hesabı tarafından çözülebilir.
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
Parametreler
Döndürülenler
Bu işlem tamamlandıktan sonra öğesine IDataProtectionBuilder başvuru.
Açıklamalar
DPAPI-NG hakkında daha fazla bilgi için bkz https://msdn.microsoft.com/en-us/library/windows/desktop/hh706794(v=vs.85).aspx . Bu API yalnızca Windows 8 / Windows Server 2012 ve üzeri sürümlerde desteklenir.
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin