Package org.jclouds.aws.s3.blobstore
Class AWSS3BlobRequestSignerV4
- java.lang.Object
-
- org.jclouds.s3.blobstore.S3BlobRequestSigner<AWSS3Client>
-
- org.jclouds.aws.s3.blobstore.AWSS3BlobRequestSignerV4
-
- All Implemented Interfaces:
BlobRequestSigner
public class AWSS3BlobRequestSignerV4 extends S3BlobRequestSigner<AWSS3Client>
-
-
Field Summary
-
Fields inherited from class org.jclouds.s3.blobstore.S3BlobRequestSigner
blob2HttpGetOptions, blobToObject, createMethod, deleteMethod, getMethod, processor
-
-
Constructor Summary
Constructors Constructor Description AWSS3BlobRequestSignerV4(RestAnnotationProcessor processor, BlobToObject blobToObject, BlobToHttpGetOptions blob2HttpGetOptions, Class<AWSS3Client> interfaceClass, RequestAuthorizeSignature authSigner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest
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 timeHttpRequest
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-
Methods inherited from class org.jclouds.s3.blobstore.S3BlobRequestSigner
signGetBlob, signGetBlob, signPutBlob
-
-
-
-
Constructor Detail
-
AWSS3BlobRequestSignerV4
@Inject public AWSS3BlobRequestSignerV4(RestAnnotationProcessor processor, BlobToObject blobToObject, BlobToHttpGetOptions blob2HttpGetOptions, Class<AWSS3Client> interfaceClass, RequestAuthorizeSignature authSigner) throws SecurityException, NoSuchMethodException
-
-
Method Detail
-
signGetBlob
public HttpRequest signGetBlob(String container, String name, long timeInSeconds)
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
- Overrides:
signGetBlob
in classS3BlobRequestSigner<AWSS3Client>
timeInSeconds
- validity time in seconds for the generated request- See Also:
BlobRequestSigner.signGetBlob(String, String)
-
signPutBlob
public HttpRequest signPutBlob(String container, Blob blob, long timeInSeconds)
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
- Overrides:
signPutBlob
in classS3BlobRequestSigner<AWSS3Client>
timeInSeconds
- validity time in seconds for the generated request- See Also:
BlobBuilder#forSigning
,BlobRequestSigner.signPutBlob(java.lang.String, org.jclouds.blobstore.domain.Blob)
-
-