@Singleton public class LocalBlobRequestSigner extends Object implements BlobRequestSigner
| Constructor and Description |
|---|
LocalBlobRequestSigner(org.jclouds.http.filters.BasicAuthentication basicAuth,
BlobToHttpGetOptions blob2HttpGetOptions,
com.google.common.base.Supplier<URI> endpoint,
org.jclouds.io.ContentMetadataCodec contentMetadataCodec) |
| Modifier and Type | Method and Description |
|---|---|
org.jclouds.http.HttpRequest |
signGetBlob(String container,
String name)
gets a signed request, including headers as necessary, to access a blob from an external
client.
|
org.jclouds.http.HttpRequest |
signGetBlob(String container,
String name,
GetOptions options) |
org.jclouds.http.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
|
org.jclouds.http.HttpRequest |
signPutBlob(String container,
Blob blob)
gets a signed request, including headers as necessary, to upload a blob from an external
client.
|
org.jclouds.http.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
|
org.jclouds.http.HttpRequest |
signRemoveBlob(String container,
String name)
gets a signed request, including headers as necessary, to delete a blob from an external
client.
|
@Inject
public LocalBlobRequestSigner(org.jclouds.http.filters.BasicAuthentication basicAuth,
BlobToHttpGetOptions blob2HttpGetOptions,
com.google.common.base.Supplier<URI> endpoint,
org.jclouds.io.ContentMetadataCodec contentMetadataCodec)
public org.jclouds.http.HttpRequest signGetBlob(String container, String name)
BlobRequestSignersignGetBlob in interface BlobRequestSignercontainer - container where the blob residespublic org.jclouds.http.HttpRequest signGetBlob(String container, String name, long timeInSeconds)
BlobRequestSignersignGetBlob in interface BlobRequestSignertimeInSeconds - validity time in seconds for the generated requestBlobRequestSigner.signGetBlob(String, String)public org.jclouds.http.HttpRequest signPutBlob(String container, Blob blob)
BlobRequestSigner
Blob blob = context.getBlobStore.blobBuilder().name("name").forSigning().contentType("text/plain")
.contentLength(length).build();
signPutBlob in interface BlobRequestSignercontainer - container where the blob residesblob - what to uploadBlobBuilder#forSigningpublic org.jclouds.http.HttpRequest signPutBlob(String container, Blob blob, long timeInSeconds)
BlobRequestSignersignPutBlob in interface BlobRequestSignertimeInSeconds - validity time in seconds for the generated requestBlobBuilder#forSigning,
BlobRequestSigner.signPutBlob(java.lang.String, org.jclouds.blobstore.domain.Blob)public org.jclouds.http.HttpRequest signRemoveBlob(String container, String name)
BlobRequestSignersignRemoveBlob in interface BlobRequestSignercontainer - container where the blob residespublic org.jclouds.http.HttpRequest signGetBlob(String container, String name, GetOptions options)
signGetBlob in interface BlobRequestSignerBlobRequestSigner.signGetBlob(String, String)Copyright © 2009-2017 The Apache Software Foundation. All Rights Reserved.