DataProtectionBuilderExtensions.ProtectKeysWithDpapi メソッド

定義

オーバーロード

ProtectKeysWithDpapi(IDataProtectionBuilder)

ストレージに永続化される前に、Windows DPAPI で暗号化されるようにキーを構成します。 暗号化されたキーは、現在の Windows ユーザー アカウントでのみ復号化できます。

ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean)

ストレージに永続化される前に、Windows DPAPI で暗号化されるようにキーを構成します。

ProtectKeysWithDpapi(IDataProtectionBuilder)

ストレージに永続化される前に、Windows DPAPI で暗号化されるようにキーを構成します。 暗号化されたキーは、現在の 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

パラメーター

戻り値

この操作が完了した後の への IDataProtectionBuilder 参照。

注釈

この API は、Windows プラットフォームでのみサポートされています。

適用対象

ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean)

ストレージに永続化される前に、Windows DPAPI で暗号化されるようにキーを構成します。

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

パラメーター

protectToLocalMachine
Boolean

キーをローカル コンピューターで使用して暗号化を解除できる場合は 'true'、キーを現在の Windows ユーザー アカウントでのみ復号化できる場合は 'false' です。

戻り値

この操作が完了した後の への IDataProtectionBuilder 参照。

注釈

この API は、Windows プラットフォームでのみサポートされています。

適用対象