public final class StorageCredentialsSharedAccessSignature extends StorageCredentials
Constructor and Description |
---|
StorageCredentialsSharedAccessSignature(String token)
Creates an instance of the
StorageCredentialsSharedAccessSignature class using the specified shared
access signature token. |
Modifier and Type | Method and Description |
---|---|
String |
getToken()
Returns the shared access signature token.
|
String |
toString(boolean exportSecrets)
Returns a
String that represents this instance, optionally including sensitive data. |
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.
|
URI |
transformUri(URI 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.
|
getAccountName, isHttpsOnly, setHttpsOnly, transformUri, transformUri, tryParseCredentials, tryParseCredentials
public StorageCredentialsSharedAccessSignature(String token)
StorageCredentialsSharedAccessSignature
class using the specified shared
access signature token.token
- A String
that represents shared access signature token.public String getToken()
String
that contains the token.public String toString(boolean exportSecrets)
String
that represents this instance, optionally including sensitive data.toString
in class StorageCredentials
exportSecrets
- true
to include sensitive data in the return string; otherwise, false
.String
that represents this object, optionally including sensitive data.public URI transformUri(URI resourceUri, OperationContext opContext) throws URISyntaxException, StorageException
transformUri
in class StorageCredentials
resourceUri
- A java.net.URI
object that represents the resource URI to be transformed.opContext
- An OperationContext
object that represents the context for the current operation. This object
is used to track requests to the storage service, and to provide additional runtime information about
the operation.java.net.URI
object that represents the signature, including the resource URI and the
shared access token.StorageException
- If a storage service error occurred.URISyntaxException
- If the resource URI is not properly formatted.public StorageUri transformUri(StorageUri resourceUri, OperationContext opContext) throws URISyntaxException, StorageException
transformUri
in class StorageCredentials
resourceUri
- A StorageUri
object that represents the resource URI to be transformed.opContext
- An OperationContext
object that represents the context for the current operation. This object
is used to track requests to the storage service, and to provide additional runtime information about
the operation.StorageUri
object that represents the signature, including the resource URI and the
shared access token.StorageException
- If a storage service error occurred.URISyntaxException
- If the resource URI is not properly formatted.Copyright © 2019. All rights reserved.