Package org.jclouds.s3.blobstore
Class S3BlobRequestSigner<T extends S3Client>
java.lang.Object
org.jclouds.s3.blobstore.S3BlobRequestSigner<T>
- All Implemented Interfaces:
BlobRequestSigner
- Direct Known Subclasses:
AWSS3BlobRequestSignerV4
@Singleton
public class S3BlobRequestSigner<T extends S3Client>
extends Object
implements BlobRequestSigner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlobToHttpGetOptions
protected final BlobToObject
protected final com.google.common.reflect.Invokable
<?, ?> protected final com.google.common.reflect.Invokable
<?, ?> protected final com.google.common.reflect.Invokable
<?, ?> protected final RestAnnotationProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionS3BlobRequestSigner
(RestAnnotationProcessor processor, BlobToObject blobToObject, BlobToHttpGetOptions blob2HttpGetOptions, Class<T> interfaceClass, RequestAuthorizeSignature authSigner) -
Method Summary
Modifier and TypeMethodDescriptionsignGetBlob
(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 time
-
Field Details
-
processor
-
blobToObject
-
blob2HttpGetOptions
-
getMethod
protected final com.google.common.reflect.Invokable<?,?> getMethod -
deleteMethod
protected final com.google.common.reflect.Invokable<?,?> deleteMethod -
createMethod
protected final com.google.common.reflect.Invokable<?,?> createMethod
-
-
Constructor Details
-
S3BlobRequestSigner
@Inject public S3BlobRequestSigner(RestAnnotationProcessor processor, BlobToObject blobToObject, BlobToHttpGetOptions blob2HttpGetOptions, Class<T> interfaceClass, RequestAuthorizeSignature authSigner) throws SecurityException, NoSuchMethodException
-
-
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:
-
signGetBlob
- Specified by:
signGetBlob
in interfaceBlobRequestSigner
- Parameters:
options
-- See Also:
-