org.jclouds.s3.filters
Class RequestAuthorizeSignature

java.lang.Object
  extended by 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:

Field Summary
static Set<String> SIGNED_PARAMETERS
           
 
Constructor Summary
RequestAuthorizeSignature(SignatureWire signatureWire, String authTag, boolean isVhostStyle, String servicePath, String headerTag, String accessKey, String secretKey, javax.inject.Provider<String> timeStampProvider, Crypto crypto, HttpUtils utils)
           
 
Method Summary
 String createStringToSign(HttpRequest request)
           
 HttpRequest filter(HttpRequest request)
           
 String sign(String toSign)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGNED_PARAMETERS

public static Set<String> SIGNED_PARAMETERS
Constructor Detail

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)
Method Detail

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.