StorageCredentialsSharedAccessSignature Class
- java.
lang. Object - StorageCredentials
- com.
microsoft. azure. storage. StorageCredentialsSharedAccessSignature
- com.
public class StorageCredentialsSharedAccessSignature extends StorageCredentials
Represents storage credentials for delegated access to Blob service resources via a shared access signature.
Constructor Summary
Constructor | Description |
---|---|
StorageCredentialsSharedAccessSignature(final String token) |
Creates an instance of the class using the specified shared access signature token. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getToken()
Returns the shared access signature token. |
String |
toString(final boolean exportSecrets)
Returns a that represents this instance, optionally including sensitive data. |
URI |
transformUri(final URI resourceUri, final OperationContext opContext)
Transforms a resource URI into a shared access signature URI, by appending a shared access token and using the specified operation context. |
Storage |
transformUri(StorageUri resourceUri, OperationContext opContext)
Transforms a resource URI into a shared access signature URI, by appending a shared access token and using the specified operation context. |
Inherited Members
Constructor Details
StorageCredentialsSharedAccessSignature
public StorageCredentialsSharedAccessSignature(final String token)
Creates an instance of the class using the specified shared access signature token.
Parameters:
String
that represents shared access signature token.
Method Details
getToken
public String getToken()
Returns the shared access signature token.
Returns:
String
that contains the token.toString
public String toString(final boolean exportSecrets)
Returns a that represents this instance, optionally including sensitive data.
Parameters:
true
to include sensitive data in the return string; otherwise, false
.
Returns:
String
that represents this object, optionally including sensitive data.transformUri
public URI transformUri(final URI resourceUri, final OperationContext opContext)
Transforms a resource URI into a shared access signature URI, by appending a shared access token and using the specified operation context.
Parameters:
java.net.URI
object that represents the resource URI to be transformed.
Returns:
java.net.URI
object that represents the signature, including the resource URI and the shared access token.Throws:
transformUri
public StorageUri transformUri(StorageUri resourceUri, OperationContext opContext)
Transforms a resource URI into a shared access signature URI, by appending a shared access token and using the specified operation context.
Parameters:
StorageUri
object that represents the resource URI to be transformed.
Returns:
StorageUri
object that represents the signature, including the resource URI and the shared access token.Throws: