public final class StorageCredentialsAnonymous extends StorageCredentials
Modifier and Type | Field and Description |
---|---|
static StorageCredentials |
ANONYMOUS
Stores the singleton instance of this class.
|
Modifier and Type | Method and Description |
---|---|
String |
toString(boolean exportSecrets)
Returns a
String object that represents this instance. |
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, transformUri, transformUri, tryParseCredentials
public static final StorageCredentials ANONYMOUS
public String toString(boolean exportSecrets)
String
object that represents this instance.toString
in class StorageCredentials
exportSecrets
- true
to include sensitive data in the string; otherwise, false
public URI transformUri(URI resourceUri, OperationContext opContext)
StorageCredentials
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.public StorageUri transformUri(StorageUri resourceUri, OperationContext opContext)
StorageCredentials
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./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/