Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AzureDataProtectionBuilderExtensions.PersistKeysToAzureBlobStorage Method

Definition

Namespace:
Microsoft.AspNetCore.DataProtection
Assemblies:
Microsoft.AspNetCore.DataProtection.AzureKeyVault.dll, Microsoft.AspNetCore.DataProtection.AzureStorage.dll
Assembly:
Microsoft.AspNetCore.DataProtection.AzureStorage.dll
Packages:
Microsoft.AspNetCore.DataProtection.AzureKeyVault v3.0.3, Microsoft.AspNetCore.DataProtection.AzureStorage v3.0.3
Packages:
Microsoft.AspNetCore.DataProtection.AzureKeyVault v3.1.18, Microsoft.AspNetCore.DataProtection.AzureStorage v3.1.18
Package:
Microsoft.AspNetCore.DataProtection.AzureStorage v1.0.0
Package:
Microsoft.AspNetCore.DataProtection.AzureStorage v2.0.0
Packages:
Microsoft.AspNetCore.DataProtection.AzureKeyVault v2.1.0, Microsoft.AspNetCore.DataProtection.AzureStorage v2.1.0
Packages:
Microsoft.AspNetCore.DataProtection.AzureKeyVault v2.2.0, Microsoft.AspNetCore.DataProtection.AzureStorage v2.2.0

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudBlockBlob)

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudBlockBlob)

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri)

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudBlobContainer, String)

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudStorageAccount, String)

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudBlobContainer, String)

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudStorageAccount, String)

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudBlockBlob)

Source:
AzureDataProtectionBuilderExtensions.cs
Source:
AzureDataProtectionBuilderExtensions.cs

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToAzureBlobStorage(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::Azure::Storage::Blob::CloudBlockBlob ^ blobReference);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.Azure.Storage.Blob.CloudBlockBlob blobReference);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.Azure.Storage.Blob.CloudBlockBlob -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, blobReference As CloudBlockBlob) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

blobReference
CloudBlockBlob

The CloudBlockBlob where the key file should be stored.

Returns

The value builder.

Remarks

The container referenced by blobReference must already exist.

Applies to

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudBlockBlob)

Source:
AzureDataProtectionBuilderExtensions.cs

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToAzureBlobStorage(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::WindowsAzure::Storage::Blob::CloudBlockBlob ^ blobReference);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob blobReference);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, blobReference As CloudBlockBlob) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

blobReference
CloudBlockBlob

The CloudBlockBlob where the key file should be stored.

Returns

The value builder.

Remarks

The container referenced by blobReference must already exist.

Applies to

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri)

Source:
AzureDataProtectionBuilderExtensions.cs
Source:
AzureDataProtectionBuilderExtensions.cs
Source:
AzureDataProtectionBuilderExtensions.cs

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

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

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

blobUri
Uri

The full URI where the key file should be stored. The URI must contain the SAS token as a query string parameter.

Returns

The value builder.

Remarks

The container referenced by blobUri must already exist.

Applies to

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudBlobContainer, String)

Source:
AzureDataProtectionBuilderExtensions.cs
Source:
AzureDataProtectionBuilderExtensions.cs

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToAzureBlobStorage(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::Azure::Storage::Blob::CloudBlobContainer ^ container, System::String ^ blobName);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.Azure.Storage.Blob.CloudBlobContainer container, string blobName);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.Azure.Storage.Blob.CloudBlobContainer * string -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, container As CloudBlobContainer, blobName As String) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

container
CloudBlobContainer

The CloudBlobContainer in which the key file should be stored.

blobName
String

The name of the key file, generally specified as "[subdir/]keys.xml"

Returns

The value builder.

Remarks

The container referenced by container must already exist.

Applies to

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudStorageAccount, String)

Source:
AzureDataProtectionBuilderExtensions.cs
Source:
AzureDataProtectionBuilderExtensions.cs

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToAzureBlobStorage(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::Azure::Storage::CloudStorageAccount ^ storageAccount, System::String ^ relativePath);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.Azure.Storage.CloudStorageAccount storageAccount, string relativePath);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.Azure.Storage.CloudStorageAccount * string -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, storageAccount As CloudStorageAccount, relativePath As String) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

storageAccount
CloudStorageAccount

The CloudStorageAccount which should be utilized.

relativePath
String

A relative path where the key file should be stored, generally specified as "/containerName/[subDir/]keys.xml".

Returns

The value builder.

Remarks

The container referenced by relativePath must already exist.

Applies to

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudBlobContainer, String)

Source:
AzureDataProtectionBuilderExtensions.cs

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToAzureBlobStorage(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::WindowsAzure::Storage::Blob::CloudBlobContainer ^ container, System::String ^ blobName);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer container, string blobName);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer * string -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, container As CloudBlobContainer, blobName As String) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

container
CloudBlobContainer

The CloudBlobContainer in which the key file should be stored.

blobName
String

The name of the key file, generally specified as "[subdir/]keys.xml"

Returns

The value builder.

Remarks

The container referenced by container must already exist.

Applies to

PersistKeysToAzureBlobStorage(IDataProtectionBuilder, CloudStorageAccount, String)

Source:
AzureDataProtectionBuilderExtensions.cs

Configures the data protection system to persist keys to the specified path in Azure Blob Storage.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToAzureBlobStorage(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::WindowsAzure::Storage::CloudStorageAccount ^ storageAccount, System::String ^ relativePath);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.WindowsAzure.Storage.CloudStorageAccount storageAccount, string relativePath);
static member PersistKeysToAzureBlobStorage : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.WindowsAzure.Storage.CloudStorageAccount * string -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToAzureBlobStorage (builder As IDataProtectionBuilder, storageAccount As CloudStorageAccount, relativePath As String) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

storageAccount
CloudStorageAccount

The CloudStorageAccount which should be utilized.

relativePath
String

A relative path where the key file should be stored, generally specified as "/containerName/[subDir/]keys.xml".

Returns

The value builder.

Remarks

The container referenced by relativePath must already exist.

Applies to


Feedback

Was this page helpful?