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, sign
public String getAlgorithm()
ServiceSignature
getAlgorithm
在类中 ServiceSignature
public String getVersion()
ServiceSignature
getVersion
在类中 ServiceSignature
public String computeSignature(String key, String data)
ServiceSignature
computeSignature
在类中 ServiceSignature
key
- The key for the signature.data
- The data to compute the signature on.public byte[] computeHash(byte[] key, byte[] data)
ServiceSignature
computeHash
在类中 ServiceSignature
key
- The key for the signature.data
- The data to compute the hash on.Copyright © 2022. All Rights Reserved.