public 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 |
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