public final class Signature
extends java.lang.Object
Constructor and Description |
---|
Signature() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
calculateRFC2104HMAC(java.lang.String data,
java.lang.String key)
Computes RFC 2104-compliant HMAC signature.
|
static java.lang.String |
canonicalizeAmzHeaders(MultiMap<java.lang.String,java.lang.String> customHeaders) |
static java.lang.String |
canonicalizeResource(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> queryParams) |
static java.lang.String |
signature(SignatureDetails signatureDetails)
Auth signature as described by AWS
|
public static java.lang.String calculateRFC2104HMAC(java.lang.String data, java.lang.String key) throws java.security.SignatureException
key
- The signing key.java.security.SignatureException
- when signature generation failspublic static java.lang.String signature(SignatureDetails signatureDetails) throws java.security.SignatureException
java.security.SignatureException
public static java.lang.String canonicalizeResource(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> queryParams)
public static java.lang.String canonicalizeAmzHeaders(MultiMap<java.lang.String,java.lang.String> customHeaders)