com.amazonaws.auth
Class AbstractAWSSigner
java.lang.Object
   com.amazonaws.auth.AbstractAWSSigner
com.amazonaws.auth.AbstractAWSSigner
- All Implemented Interfaces: 
- Signer
- Direct Known Subclasses: 
- AWS3Signer, AWS4Signer, QueryStringSigner
- public abstract class AbstractAWSSigner 
- extends java.lang.Object- implements Signer
Abstract base class for AWS signing protocol implementations. Provides
 utilities commonly needed by signing protocols such as computing
 canonicalized host names, query string parameters, etc.
 
 Not intended to be sub-classed by developers.
 
| Method Summary | 
|  byte[] | hash(byte[] data)Hashes the binary data using the SHA-256 algorithm.
 | 
|  byte[] | hash(java.lang.String text)Hashes the string contents (assumed to be UTF-8) using the SHA-256
 algorithm.
 | 
|  byte[] | sign(java.lang.String stringData,
     byte[] key,
     SigningAlgorithm algorithm)
 | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface com.amazonaws.auth.Signer | 
| sign | 
 
AbstractAWSSigner
public AbstractAWSSigner()
sign
public byte[] sign(java.lang.String stringData,
                   byte[] key,
                   SigningAlgorithm algorithm)
            throws AmazonClientException
- 
 
- 
- Throws:
- AmazonClientException
 
hash
public byte[] hash(java.lang.String text)
            throws AmazonClientException
- Hashes the string contents (assumed to be UTF-8) using the SHA-256
 algorithm.
 
- 
 
- 
- Parameters:
- text- The string to hash.
- Returns:
- The hashed bytes from the specified string.
- Throws:
- AmazonClientException- If the hash cannot be computed.
 
hash
public byte[] hash(byte[] data)
            throws AmazonClientException
- Hashes the binary data using the SHA-256 algorithm.
 
- 
 
- 
- Parameters:
- data- The binary data to hash.
- Returns:
- The hashed bytes from the specified data.
- Throws:
- AmazonClientException- If the hash cannot be computed.
 
                Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.