Package org.jclouds.azureblob.blobstore
Class AzureBlobRequestSigner
java.lang.Object
org.jclouds.azureblob.blobstore.AzureBlobRequestSigner
- All Implemented Interfaces:
BlobRequestSigner
-
Constructor Summary
ConstructorsConstructorDescriptionAzureBlobRequestSigner
(BlobToHttpGetOptions blob2HttpGetOptions, com.google.inject.Provider<String> timeStampProvider, DateService dateService, SharedKeyLiteAuthentication auth, com.google.common.base.Supplier<Credentials> creds, boolean sasAuthentication, StorageUrlSupplier storageUriSupplier, AuthType authType) -
Method Summary
Modifier and TypeMethodDescriptionsign
(String method, String container, String name, GetOptions options, long expires, Long contentLength, String contentType) modified sign() method, which acts depending on the Auth input.signGetBlob
(String container, String name) gets a signed request, including headers as necessary, to access a blob from an external client.signGetBlob
(String container, String name, long timeInSeconds) gets a signed request, including headers as necessary, to allow access to a blob from an external client for a limited period of timesignGetBlob
(String container, String name, GetOptions options) signPutBlob
(String container, Blob blob) gets a signed request, including headers as necessary, to upload a blob from an external client.signPutBlob
(String container, Blob blob, long timeInSeconds) gets a signed request, including headers as necessary, to upload a blob from an external client for a limited period of timesignRemoveBlob
(String container, String name)
-
Constructor Details
-
Method Details
-
signGetBlob
Description copied from interface:BlobRequestSigner
gets a signed request, including headers as necessary, to access a blob from an external client.- Specified by:
signGetBlob
in interfaceBlobRequestSigner
- Parameters:
container
- container where the blob resides
-
signGetBlob
Description copied from interface:BlobRequestSigner
gets a signed request, including headers as necessary, to allow access to a blob from an external client for a limited period of time- Specified by:
signGetBlob
in interfaceBlobRequestSigner
- Parameters:
timeInSeconds
- validity time in seconds for the generated request- See Also:
-
signPutBlob
Description copied from interface:BlobRequestSigner
gets a signed request, including headers as necessary, to upload a blob from an external client.Blob blob = context.getBlobStore.blobBuilder().name("name").forSigning().contentType("text/plain") .contentLength(length).build();
- Specified by:
signPutBlob
in interfaceBlobRequestSigner
- Parameters:
container
- container where the blob residesblob
- what to upload- See Also:
-
signPutBlob
Description copied from interface:BlobRequestSigner
gets a signed request, including headers as necessary, to upload a blob from an external client for a limited period of time- Specified by:
signPutBlob
in interfaceBlobRequestSigner
- Parameters:
timeInSeconds
- validity time in seconds for the generated request- See Also:
-
signRemoveBlob
-
signGetBlob
- Specified by:
signGetBlob
in interfaceBlobRequestSigner
- Parameters:
options
-- See Also:
-
sign
public HttpRequest sign(String method, String container, String name, @Nullable GetOptions options, long expires, @Nullable Long contentLength, @Nullable String contentType) modified sign() method, which acts depending on the Auth input.
-