Class AzureStorageBlobDataProtectionBuilderExtensions
Contains Azure-specific extension methods for modifying a IDataProtectionBuilder.
Namespace: Microsoft.AspNetCore.DataProtection
Assembly: Azure.Extensions.AspNetCore.DataProtection.Blobs.dll
Syntax
public static class AzureStorageBlobDataProtectionBuilderExtensions
Methods
PersistKeysToAzureBlobStorage(IDataProtectionBuilder, BlobClient)
Configures the data protection system to persist keys to the specified path in Azure Blob Storage.
Declaration
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Azure.Storage.Blobs.BlobClient blobClient);
Parameters
IDataProtectionBuilder
builder
The builder instance to modify. |
BlobClient
blobClient
The BlobClient in which the key file should be stored. |
Returns
IDataProtectionBuilder
The value |
Remarks
The blob referenced by blobClient
must already exist.
PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri)
Configures the data protection system to persist keys to the specified path in Azure Blob Storage.
Declaration
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Uri blobSasUri);
Parameters
IDataProtectionBuilder
builder
The builder instance to modify. |
Uri
blobSasUri
|
Returns
IDataProtectionBuilder
The value |
Remarks
The container referenced by blobSasUri
must already exist.
PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri, TokenCredential)
Configures the data protection system to persist keys to the specified path in Azure Blob Storage.
Declaration
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Uri blobUri, Azure.Core.TokenCredential tokenCredential);
Parameters
IDataProtectionBuilder
builder
The builder instance to modify. |
Uri
blobUri
|
TokenCredential
tokenCredential
The credentials to connect to the blob. |
Returns
IDataProtectionBuilder
The value |
Remarks
The container referenced by blobUri
must already exist.
PersistKeysToAzureBlobStorage(IDataProtectionBuilder, Uri, StorageSharedKeyCredential)
PersistKeysToAzureBlobStorage(IDataProtectionBuilder, String, String, String)
Configures the data protection system to persist keys to the specified path in Azure Blob Storage.
Declaration
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToAzureBlobStorage (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string connectionString, string containerName, string blobName);
Parameters
IDataProtectionBuilder
builder
The builder instance to modify. |
String
connectionString
A connection string includes the authentication information required for your application to access data in an Azure Storage account at runtime. |
String
containerName
The container name to use. |
String
blobName
The blob name to use. |
Returns
IDataProtectionBuilder
The value |
Remarks
The container referenced by containerName
blobName
must already exist.