Package org.jclouds.azureblob.blobstore
Class AzureBlobRequestSigner
- java.lang.Object
- 
- org.jclouds.azureblob.blobstore.AzureBlobRequestSigner
 
- 
- All Implemented Interfaces:
- BlobRequestSigner
 
 @Singleton public class AzureBlobRequestSigner extends Object implements BlobRequestSigner 
- 
- 
Constructor SummaryConstructors Constructor Description AzureBlobRequestSigner(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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequestsign(String method, String container, String name, GetOptions options, long expires, Long contentLength, String contentType)modified sign() method, which acts depending on the Auth input.HttpRequestsignGetBlob(String container, String name)gets a signed request, including headers as necessary, to access a blob from an external client.HttpRequestsignGetBlob(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 timeHttpRequestsignGetBlob(String container, String name, GetOptions options)HttpRequestsignPutBlob(String container, Blob blob)gets a signed request, including headers as necessary, to upload a blob from an external client.HttpRequestsignPutBlob(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 timeHttpRequestsignRemoveBlob(String container, String name)
 
- 
- 
- 
Constructor Detail- 
AzureBlobRequestSigner@Inject public AzureBlobRequestSigner(BlobToHttpGetOptions blob2HttpGetOptions, com.google.inject.Provider<String> timeStampProvider, DateService dateService, SharedKeyLiteAuthentication auth, com.google.common.base.Supplier<Credentials> creds, @Named("sasAuth") boolean sasAuthentication, StorageUrlSupplier storageUriSupplier, AuthType authType) throws SecurityException, NoSuchMethodException 
 
- 
 - 
Method Detail- 
signGetBlobpublic HttpRequest signGetBlob(String container, String name) Description copied from interface:BlobRequestSignergets a signed request, including headers as necessary, to access a blob from an external client.- Specified by:
- signGetBlobin interface- BlobRequestSigner
- Parameters:
- container- container where the blob resides
 
 - 
signGetBlobpublic HttpRequest signGetBlob(String container, String name, long timeInSeconds) Description copied from interface:BlobRequestSignergets 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:
- signGetBlobin interface- BlobRequestSigner
- timeInSeconds- validity time in seconds for the generated request
- See Also:
- BlobRequestSigner.signGetBlob(String, String)
 
 - 
signPutBlobpublic HttpRequest signPutBlob(String container, Blob blob) Description copied from interface:BlobRequestSignergets 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:
- signPutBlobin interface- BlobRequestSigner
- Parameters:
- container- container where the blob resides
- blob- what to upload
- See Also:
- BlobBuilder#forSigning
 
 - 
signPutBlobpublic HttpRequest signPutBlob(String container, Blob blob, long timeInSeconds) Description copied from interface:BlobRequestSignergets a signed request, including headers as necessary, to upload a blob from an external client for a limited period of time- Specified by:
- signPutBlobin interface- BlobRequestSigner
- timeInSeconds- validity time in seconds for the generated request
- See Also:
- BlobBuilder#forSigning,- BlobRequestSigner.signPutBlob(java.lang.String, org.jclouds.blobstore.domain.Blob)
 
 - 
signRemoveBlobpublic HttpRequest signRemoveBlob(String container, String name) 
 - 
signGetBlobpublic HttpRequest signGetBlob(String container, String name, GetOptions options) - Specified by:
- signGetBlobin interface- BlobRequestSigner
- See Also:
- BlobRequestSigner.signGetBlob(String, String)
 
 - 
signpublic 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.
 
- 
 
-