mirror of https://github.com/apache/jclouds.git
JCLOUDS-1271: Deprecate signRemoveBlob
URL signing should always use authentication parameters instead of headers yet no provider supports DELETEs with the former.
This commit is contained in:
parent
f0e11d5c2e
commit
2e7de9f850
|
@ -85,6 +85,7 @@ public class AtmosBlobRequestSigner implements BlobRequestSigner {
|
|||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public HttpRequest signRemoveBlob(String container, String name) {
|
||||
checkNotNull(container, "container");
|
||||
|
|
|
@ -88,6 +88,7 @@ public class RegionScopedTemporaryUrlBlobSigner implements BlobRequestSigner {
|
|||
return sign("PUT", container, blob.getMetadata().getName(), GetOptions.NONE, timestamp.get() + timeInSeconds);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public HttpRequest signRemoveBlob(String container, String name) {
|
||||
return sign("DELETE", container, name, GetOptions.NONE, timestamp.get() + YEAR);
|
||||
|
|
|
@ -95,6 +95,7 @@ public class S3BlobRequestSigner<T extends S3Client> implements BlobRequestSigne
|
|||
return cleanRequest(authSigner.signForTemporaryAccess(request, timeInSeconds));
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public HttpRequest signRemoveBlob(String container, String name) {
|
||||
checkNotNull(container, "container");
|
||||
|
|
|
@ -71,6 +71,7 @@ public interface BlobRequestSigner {
|
|||
* @throws UnsupportedOperationException
|
||||
* if not supported by the provider
|
||||
*/
|
||||
@Deprecated
|
||||
HttpRequest signRemoveBlob(String container, String name);
|
||||
|
||||
/**
|
||||
|
|
|
@ -75,6 +75,7 @@ public class LocalBlobRequestSigner implements BlobRequestSigner {
|
|||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public HttpRequest signRemoveBlob(String container, String name) {
|
||||
HttpRequest request = HttpRequest.builder().method("DELETE").endpoint(String.format("%s/%s/%s", endpoint.get(), container,
|
||||
|
|
|
@ -41,6 +41,7 @@ public class RequestSigningUnsupported implements BlobRequestSigner {
|
|||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public HttpRequest signRemoveBlob(String container, String name) {
|
||||
throw new UnsupportedOperationException();
|
||||
|
|
|
@ -83,6 +83,7 @@ public class AzureBlobRequestSigner implements BlobRequestSigner {
|
|||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public HttpRequest signRemoveBlob(String container, String name) {
|
||||
checkNotNull(container, "container");
|
||||
|
|
Loading…
Reference in New Issue