public abstract class AbstractAWSSigner extends Object implements Signer
Not intended to be sub-classed by developers.
| Constructor and Description | 
|---|
AbstractAWSSigner()  | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
hash(byte[] data)
Hashes the binary data using the SHA-256 algorithm. 
 | 
byte[] | 
hash(String text)
Hashes the string contents (assumed to be UTF-8) using the SHA-256
 algorithm. 
 | 
byte[] | 
sign(String stringData,
    byte[] key,
    SigningAlgorithm algorithm)  | 
public byte[] sign(String stringData, byte[] key, SigningAlgorithm algorithm) throws AmazonClientException
AmazonClientExceptionpublic byte[] hash(String text) throws AmazonClientException
text - The string to hash.AmazonClientException - If the hash cannot be computed.public byte[] hash(byte[] data)
            throws AmazonClientException
data - The binary data to hash.AmazonClientException - If the hash cannot be computed.Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.