public abstract class AbstractAWSSigner extends java.lang.Object implements Signer
Not intended to be sub-classed by developers.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EMPTY_STRING_SHA256_HEX
Empty sha256 hex.
|
| 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(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)
Signs using the given signing algorithm.
|
public static final java.lang.String EMPTY_STRING_SHA256_HEX
public byte[] sign(java.lang.String stringData,
byte[] key,
SigningAlgorithm algorithm)
stringData - the data.key - the key in bytes.algorithm - the signing algorithm.public byte[] hash(java.lang.String text)
text - The string to hash.public byte[] hash(byte[] data)
data - The binary data to hash.AmazonClientException - If the hash cannot be computed.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.