public class HmacSHA256Signature extends ServiceSignature
| Constructor and Description |
|---|
HmacSHA256Signature() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
computeHash(byte[] key,
byte[] data)
Computes the hash of the data by the given key.
|
java.lang.String |
computeSignature(java.lang.String key,
java.lang.String data)
Computes the signature of the data by the given key.
|
java.lang.String |
getAlgorithm()
Gets the algorithm of signature.
|
java.lang.String |
getVersion()
Gets the algorithm version.
|
create, create, signpublic java.lang.String getAlgorithm()
ServiceSignaturegetAlgorithm in class ServiceSignaturepublic java.lang.String getVersion()
ServiceSignaturegetVersion in class ServiceSignaturepublic java.lang.String computeSignature(java.lang.String key,
java.lang.String data)
ServiceSignaturecomputeSignature in class ServiceSignaturekey - The key for the signature.data - The data to compute the signature on.public byte[] computeHash(byte[] key,
byte[] data)
ServiceSignaturecomputeHash in class ServiceSignaturekey - The key for the signature.data - The data to compute the hash on.