org.jclouds.s3.filters
Class RequestAuthorizeSignature
java.lang.Object
org.jclouds.s3.filters.RequestAuthorizeSignature
- All Implemented Interfaces:
- org.jclouds.http.HttpRequestFilter, org.jclouds.rest.RequestSigner
@Singleton
public class RequestAuthorizeSignature
- extends Object
- implements org.jclouds.http.HttpRequestFilter, org.jclouds.rest.RequestSigner
Signs the S3 request.
- See Also:
|
Constructor Summary |
RequestAuthorizeSignature(org.jclouds.http.internal.SignatureWire signatureWire,
String authTag,
boolean isVhostStyle,
String servicePath,
String headerTag,
com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds,
javax.inject.Provider<String> timeStampProvider,
org.jclouds.crypto.Crypto crypto,
org.jclouds.http.HttpUtils utils)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestAuthorizeSignature
@Inject
public RequestAuthorizeSignature(org.jclouds.http.internal.SignatureWire signatureWire,
@Named(value="jclouds.aws.auth.tag")
String authTag,
@Named(value="jclouds.s3.virtual-host-buckets")
boolean isVhostStyle,
@Named(value="jclouds.s3.service-path")
String servicePath,
@Named(value="jclouds.aws.header.tag")
String headerTag,
com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds,
javax.inject.Provider<String> timeStampProvider,
org.jclouds.crypto.Crypto crypto,
org.jclouds.http.HttpUtils utils)
filter
public org.jclouds.http.HttpRequest filter(org.jclouds.http.HttpRequest request)
throws org.jclouds.http.HttpException
- Specified by:
filter in interface org.jclouds.http.HttpRequestFilter
- Throws:
org.jclouds.http.HttpException
replaceAuthorizationHeader
protected org.jclouds.http.HttpRequest replaceAuthorizationHeader(org.jclouds.http.HttpRequest request,
String signature)
createStringToSign
public String createStringToSign(org.jclouds.http.HttpRequest request)
- Specified by:
createStringToSign in interface org.jclouds.rest.RequestSigner
sign
public String sign(String toSign)
- Specified by:
sign in interface org.jclouds.rest.RequestSigner
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.