Storage​Credentials Class

Definition

Represents a set of credentials used to authenticate access to a Microsoft Azure storage account.

public sealed class StorageCredentials
Inheritance
StorageCredentials

Constructors

Storage​Credentials()

Initializes a new instance of the StorageCredentials class.

Storage​Credentials(​String)

Initializes a new instance of the StorageCredentials class with the specified shared access signature token.

Storage​Credentials(​String, ​Byte[])

Initializes a new instance of the StorageCredentials class with the specified account name and key value.

Storage​Credentials(​String, ​String)

Initializes a new instance of the StorageCredentials class with the specified account name and key value.

Storage​Credentials(​String, ​Byte[], ​String)

Initializes a new instance of the StorageCredentials class with the specified account name, key value, and key name.

Storage​Credentials(​String, ​String, ​String)

Initializes a new instance of the StorageCredentials class with the specified account name, key value, and key name.

Properties

Account​Name

Gets the associated account name for the credentials.

Is​Anonymous

Gets a value indicating whether the credentials are for anonymous access.

Is​SA​S

Gets a value indicating whether the credentials are a shared access signature token.

Is​Shared​Key

Gets a value indicating whether the credentials are a shared key.

Key​Name

Gets the associated key name for the credentials.

S​AS​Signature

Gets the value of the shared access signature token's sig parameter.

S​AS​Token

Gets the associated shared access signature token for the credentials.

Methods

Equals(​Storage​Credentials)

Determines whether an other StorageCredentials object is equal to this one by comparing their SAS tokens, account names, key names, and key values.

Export​Base64​Encoded​Key()

Exports the value of the account access key to a Base64-encoded string.

Export​Key()

Returns the account key for the credentials.

Transform​Uri(​Storage​Uri)

Transforms a resource URI into a shared access signature URI, by appending a shared access token.

Transform​Uri(​Uri)

Transforms a resource URI into a shared access signature URI, by appending a shared access token.

Update​Key(​Byte[])

Updates the key value for the credentials.

Update​Key(​String)

Updates the key value for the credentials.

Update​Key(​Byte[], ​String)

Updates the key value and key name for the credentials.

Update​Key(​String, ​String)

Updates the key value and key name for the credentials.

Update​SA​SToken(​String)

Updates the shared access signature (SAS) token value for storage credentials created with a shared access signature.

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)