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.
Hashes the binary data using the SHA-256 algorithm.
Hashes the string contents (assumed to be UTF-8) using the SHA-256 algorithm.
Signs using the given signing algorithm.
key - the key in bytes.
algorithm - the signing algorithm.
text - The string to hash.
The hashed bytes from the specified string.
data - The binary data to hash.
The hashed bytes from the specified data.
AmazonClientException - If the hash cannot be computed.