public class HmacSHA256Signature extends ServiceSignature
| 构造器和说明 |
|---|
HmacSHA256Signature() |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
computeHash(byte[] key,
byte[] data)
Computes the hash of the data by the given key.
|
String |
computeSignature(String key,
String data)
Computes the signature of the data by the given key.
|
String |
getAlgorithm()
Gets the algorithm of signature.
|
String |
getVersion()
Gets the algorithm version.
|
create, create, signpublic String getAlgorithm()
ServiceSignaturegetAlgorithm 在类中 ServiceSignaturepublic String getVersion()
ServiceSignaturegetVersion 在类中 ServiceSignaturepublic String computeSignature(String key, String data)
ServiceSignaturecomputeSignature 在类中 ServiceSignaturekey - The key for the signature.data - The data to compute the signature on.public byte[] computeHash(byte[] key,
byte[] data)
ServiceSignaturecomputeHash 在类中 ServiceSignaturekey - The key for the signature.data - The data to compute the hash on.Copyright © 2022. All Rights Reserved.