Package com.emc.object.s3
Class S3SignerV2
- java.lang.Object
-
- com.emc.object.s3.S3Signer
-
- com.emc.object.s3.S3SignerV2
-
public final class S3SignerV2 extends S3Signer
-
-
Constructor Summary
Constructors Constructor Description S3SignerV2(S3Config s3Config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URL
generatePresignedUrl(PresignedUrlRequest request)
Generate presigned URL and then return the URLprotected java.util.SortedMap<java.lang.String,java.lang.String>
getCanonicalizedHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> headers, java.util.Map<java.lang.String,java.lang.String> parameters)
protected java.lang.String
getDate(java.util.Map<java.lang.String,java.lang.String> parameters, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> headers)
Get the date as Stringprotected java.lang.String
getSignature(java.lang.String stringToSign, byte[] signingKey)
Get the signature as String, singingKey is only needed for v4 signervoid
sign(com.sun.jersey.api.client.ClientRequest request, java.lang.String resource, java.util.Map<java.lang.String,java.lang.String> parameters, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> headers)
Sign the request-
Methods inherited from class com.emc.object.s3.S3Signer
hash256, hexEncode, hmac, trimAndJoin
-
-
-
-
Constructor Detail
-
S3SignerV2
public S3SignerV2(S3Config s3Config)
-
-
Method Detail
-
sign
public void sign(com.sun.jersey.api.client.ClientRequest request, java.lang.String resource, java.util.Map<java.lang.String,java.lang.String> parameters, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> headers)
Description copied from class:S3Signer
Sign the request
-
getSignature
protected java.lang.String getSignature(java.lang.String stringToSign, byte[] signingKey)
Description copied from class:S3Signer
Get the signature as String, singingKey is only needed for v4 signer- Specified by:
getSignature
in classS3Signer
-
getDate
protected java.lang.String getDate(java.util.Map<java.lang.String,java.lang.String> parameters, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> headers)
Description copied from class:S3Signer
Get the date as String
-
generatePresignedUrl
public java.net.URL generatePresignedUrl(PresignedUrlRequest request)
Description copied from class:S3Signer
Generate presigned URL and then return the URL- Specified by:
generatePresignedUrl
in classS3Signer
-
getCanonicalizedHeaders
protected java.util.SortedMap<java.lang.String,java.lang.String> getCanonicalizedHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> headers, java.util.Map<java.lang.String,java.lang.String> parameters)
- Specified by:
getCanonicalizedHeaders
in classS3Signer
-
-