public class AWSS3BlobRequestSignerV4 extends S3BlobRequestSigner<AWSS3Client>
blob2HttpGetOptions, blobToObject, createMethod, deleteMethod, getMethod, processor
Constructor and Description |
---|
AWSS3BlobRequestSignerV4(RestAnnotationProcessor processor,
BlobToObject blobToObject,
BlobToHttpGetOptions blob2HttpGetOptions,
Class<AWSS3Client> interfaceClass,
RequestAuthorizeSignatureV4 authSigner) |
Modifier and Type | Method and 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 time
|
HttpRequest |
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
|
signGetBlob, signGetBlob, signPutBlob, signRemoveBlob
@Inject public AWSS3BlobRequestSignerV4(RestAnnotationProcessor processor, BlobToObject blobToObject, BlobToHttpGetOptions blob2HttpGetOptions, Class<AWSS3Client> interfaceClass, RequestAuthorizeSignatureV4 authSigner) throws SecurityException, NoSuchMethodException
public HttpRequest signGetBlob(String container, String name, long timeInSeconds)
BlobRequestSigner
signGetBlob
in interface BlobRequestSigner
signGetBlob
in class S3BlobRequestSigner<AWSS3Client>
timeInSeconds
- validity time in seconds for the generated requestBlobRequestSigner.signGetBlob(String, String)
public HttpRequest signPutBlob(String container, Blob blob, long timeInSeconds)
BlobRequestSigner
signPutBlob
in interface BlobRequestSigner
signPutBlob
in class S3BlobRequestSigner<AWSS3Client>
timeInSeconds
- validity time in seconds for the generated requestBlobBuilder#forSigning
,
BlobRequestSigner.signPutBlob(java.lang.String, org.jclouds.blobstore.domain.Blob)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.