DataProtectionBuilderExtensions.ProtectKeysWithDpapi DataProtectionBuilderExtensions.ProtectKeysWithDpapi DataProtectionBuilderExtensions.ProtectKeysWithDpapi Method

Definition

Overloads

ProtectKeysWithDpapi(IDataProtectionBuilder) ProtectKeysWithDpapi(IDataProtectionBuilder) ProtectKeysWithDpapi(IDataProtectionBuilder)

Configures keys to be encrypted with Windows DPAPI before being persisted to storage. The encrypted key will only be decryptable by the current Windows user account.

ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean) ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean) ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean)

Configures keys to be encrypted with Windows DPAPI before being persisted to storage.

ProtectKeysWithDpapi(IDataProtectionBuilder) ProtectKeysWithDpapi(IDataProtectionBuilder) ProtectKeysWithDpapi(IDataProtectionBuilder)

Configures keys to be encrypted with Windows DPAPI before being persisted to storage. The encrypted key will only be decryptable by the current Windows user account.

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
Parameters
Returns

A reference to the IDataProtectionBuilder after this operation has completed.

Remarks

This API is only supported on Windows platforms.

ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean) ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean) ProtectKeysWithDpapi(IDataProtectionBuilder, Boolean)

Configures keys to be encrypted with Windows DPAPI before being persisted to storage.

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
Parameters
protectToLocalMachine
Boolean Boolean Boolean

'true' if the key should be decryptable by any use on the local machine, 'false' if the key should only be decryptable by the current Windows user account.

Returns

A reference to the IDataProtectionBuilder after this operation has completed.

Remarks

This API is only supported on Windows platforms.

Applies to