StorageCredentialsToken Class

public class StorageCredentialsToken extends StorageCredentials

Represents storage account credentials, based on an authentication token, for accessing the Microsoft Azure storage services.

Constructor Summary

Constructor Description
StorageCredentialsToken(String accountName, String token)

Creates an instance of the class, using the specified token. Token credentials must only be used with HTTPS requests on the blob and queue services. The specified token is stored as a .

Method Summary

Modifier and Type Method and Description
String getAccountName()

Gets the account name.

String getToken()

Gets the token.

boolean isHttpsOnly()

Gets whether this object only allows access via HTTPS.

String toString(final boolean exportSecrets)

Returns a that represents this instance, optionally including sensitive data.

StorageUri transformUri(StorageUri resourceUri, OperationContext opContext)
URI transformUri(URI resourceUri, OperationContext opContext)
synchronized void updateToken(final String token)

Sets the token to be used when authenticating HTTPS requests.

Inherited Members

Constructor Details

StorageCredentialsToken

public StorageCredentialsToken(String accountName, String token)

Creates an instance of the class, using the specified token. Token credentials must only be used with HTTPS requests on the blob and queue services. The specified token is stored as a .

Parameters:

accountName
token - A String that represents the token.

Method Details

getAccountName

public String getAccountName()

Gets the account name.

Returns:

A String that contains the account name.

getToken

public String getToken()

Gets the token.

Returns:

A String that contains the token.

isHttpsOnly

public boolean isHttpsOnly()

Gets whether this object only allows access via HTTPS.

Returns:

A boolean representing whether this StorageCredentials object only allows access via HTTPS.

toString

public String toString(final boolean exportSecrets)

Returns a that represents this instance, optionally including sensitive data.

Parameters:

exportSecrets -

true to include sensitive data in the return string; otherwise, false.

Returns:

A String that represents this object, optionally including sensitive data.

transformUri

public StorageUri transformUri(StorageUri resourceUri, OperationContext opContext)

Parameters:

resourceUri
opContext

transformUri

public URI transformUri(URI resourceUri, OperationContext opContext)

Parameters:

resourceUri
opContext

updateToken

public synchronized void updateToken(final String token)

Sets the token to be used when authenticating HTTPS requests.

Parameters:

token - A String that represents the access token to be used when authenticating HTTPS requests.

Applies to