DataProtectionBuilderExtensions.ProtectKeysWithDpapiNG Método

Definición

Sobrecargas

ProtectKeysWithDpapiNG(IDataProtectionBuilder, String, DpapiNGProtectionDescriptorFlags)

Configura las claves que se cifran con DPAPI de CNG de Windows antes de conservarse en el almacenamiento.

ProtectKeysWithDpapiNG(IDataProtectionBuilder)

Configura las claves que se cifran con DPAPI de CNG de Windows antes de conservarse en el almacenamiento. La cuenta de usuario de Windows actual podrá descifrar las claves.

ProtectKeysWithDpapiNG(IDataProtectionBuilder, String, DpapiNGProtectionDescriptorFlags)

Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs

Configura las claves que se cifran con DPAPI de CNG de Windows antes de conservarse en el almacenamiento.

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

Parámetros

protectionDescriptorRule
String

Cadena de regla de descriptor con la que se va a proteger el material de clave.

flags
DpapiNGProtectionDescriptorFlags

Marcas que se deben pasar a la llamada a "NCryptCreateProtectionDescriptor". El valor predeterminado de este parámetro es None.

Devoluciones

Referencia a una IDataProtectionBuilder vez completada esta operación.

Comentarios

Consulte https://msdn.microsoft.com/en-us/library/windows/desktop/hh769091(v=vs.85).aspx y https://msdn.microsoft.com/en-us/library/windows/desktop/hh706800(v=vs.85).aspx para obtener más información sobre los valores válidos de los protectionDescriptorRule argumentos y flags . Esta API solo se admite en Windows 8 o Windows Server 2012 y versiones posteriores.

Se aplica a

ProtectKeysWithDpapiNG(IDataProtectionBuilder)

Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs

Configura las claves que se cifran con DPAPI de CNG de Windows antes de conservarse en el almacenamiento. La cuenta de usuario de Windows actual podrá descifrar las claves.

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

Parámetros

Devoluciones

Referencia a una IDataProtectionBuilder vez completada esta operación.

Comentarios

Consulte https://msdn.microsoft.com/en-us/library/windows/desktop/hh706794(v=vs.85).aspx para obtener más información sobre DPAPI-NG. Esta API solo se admite en Windows 8 o Windows Server 2012 y versiones posteriores.

Se aplica a