StorageCredentialsAccountAndKey.@Deprecated public final class Credentials extends Object
| Constructor and Description |
|---|
Credentials(String accountName,
byte[] key)
Deprecated.
Creates an instance of the
Credentials class, using the specified storage account name and access
key; the specified access key is in the form of a byte array. |
Credentials(String accountName,
String key)
Deprecated.
Creates an instance of the
Credentials class, using the specified storage account name and access
key; the specified access key is stored as a Base64-encoded String. |
| Modifier and Type | Method and Description |
|---|---|
String |
exportBase64EncodedKey()
Deprecated.
Exports the value of the access key to a Base64-encoded string.
|
byte[] |
exportKey()
Deprecated.
Exports the value of the access key to an array of bytes.
|
String |
getAccountName()
Deprecated.
Gets the account name to be used when signing the request.
|
StorageKey |
getKey()
Deprecated.
Returns the access key to be used when signing the request.
|
String |
getKeyName()
Deprecated.
Gets the name of the access key to be used when signing the request.
|
public Credentials(String accountName, byte[] key)
Credentials class, using the specified storage account name and access
key; the specified access key is in the form of a byte array.accountName - A String that represents the name of the storage account.key - An array of bytes that represent the account access key.public Credentials(String accountName, String key)
Credentials class, using the specified storage account name and access
key; the specified access key is stored as a Base64-encoded String.accountName - A String that represents the name of the storage account.key - A String that represents the Base64-encoded account access key.public String exportBase64EncodedKey()
String that represents the Base64-encoded access key.public byte[] exportKey()
public String getAccountName()
String that represents the account name to be used when signing the request.public String getKeyName()
public StorageKey getKey()
String that represents the access key to be used when signing the request.Copyright © 2015. All Rights Reserved.