org.jclouds.s3.filters
Class RequestAuthorizeSignature
java.lang.Object
org.jclouds.s3.filters.RequestAuthorizeSignature
- All Implemented Interfaces:
- HttpRequestFilter, RequestSigner
@Singleton
public class RequestAuthorizeSignature
- extends Object
- implements HttpRequestFilter, RequestSigner
Signs the S3 request.
- Author:
- Adrian Cole
- See Also:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIGNED_PARAMETERS
public static Set<String> SIGNED_PARAMETERS
RequestAuthorizeSignature
@Inject
public RequestAuthorizeSignature(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,
@Named(value="jclouds.identity")
String accessKey,
@Named(value="jclouds.credential")
String secretKey,
javax.inject.Provider<String> timeStampProvider,
Crypto crypto,
HttpUtils utils)
filter
public HttpRequest filter(HttpRequest request)
throws HttpException
- Specified by:
filter
in interface HttpRequestFilter
- Throws:
HttpException
createStringToSign
public String createStringToSign(HttpRequest request)
- Specified by:
createStringToSign
in interface RequestSigner
sign
public String sign(String toSign)
- Specified by:
sign
in interface RequestSigner
Copyright © 2009-2012 jclouds. All Rights Reserved.