public class AWSS3BlobRequestSigner extends S3BlobRequestSigner<AWSS3Client>
Modifier and Type | Field and Description |
---|---|
static String |
TEMPORARY_SIGNATURE_PARAM |
blob2HttpGetOptions, blobToObject, createMethod, deleteMethod, getMethod, processor
Constructor and Description |
---|
AWSS3BlobRequestSigner(RestAnnotationProcessor processor,
BlobToObject blobToObject,
BlobToHttpGetOptions blob2HttpGetOptions,
Class<AWSS3Client> interfaceClass,
com.google.common.base.Supplier<Credentials> credentials,
RequestAuthorizeSignature authSigner,
com.google.inject.Provider<String> timeStampProvider,
DateService dateService) |
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
public static final String TEMPORARY_SIGNATURE_PARAM
@Inject public AWSS3BlobRequestSigner(RestAnnotationProcessor processor, BlobToObject blobToObject, BlobToHttpGetOptions blob2HttpGetOptions, Class<AWSS3Client> interfaceClass, com.google.common.base.Supplier<Credentials> credentials, RequestAuthorizeSignature authSigner, com.google.inject.Provider<String> timeStampProvider, DateService dateService) 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.