public class CalculateV4SigningKeyUtil extends Object
| 构造器和说明 |
|---|
CalculateV4SigningKeyUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
finalSigningKey(String secret,
String date,
String region,
String productCode,
String signMethod) |
static String |
finalSigningKeyString(String secret,
String date,
String region,
String productCode,
String signMethod)
Returns the final derived key encoded in base64.
|
static byte[] |
firstSigningKey(String secret,
String date,
String signMethod)
Get the first-level derived key
|
static byte[] |
regionSigningKey(String secret,
String date,
String region,
String signMethod)
Get the date+region derived key
|
static String |
regionSigningKeyString(String secret,
String date,
String region,
String signMethod)
Returns the base64-encoded region-level derived key.
|
public static byte[] firstSigningKey(String secret, String date, String signMethod)
secret - date - signMethod - HmacSHA256public static byte[] regionSigningKey(String secret, String date, String region, String signMethod)
secret - date - region - signMethod - public static String regionSigningKeyString(String secret, String date, String region, String signMethod)
secret - The secret key used for derivation.date - The date used in the derivation process.region - The region for which the key is derived.signMethod - The signing method used for derivation.public static byte[] finalSigningKey(String secret, String date, String region, String productCode, String signMethod)
secret - date - region - productCode - signMethod - public static String finalSigningKeyString(String secret, String date, String region, String productCode, String signMethod)
secret - The secret key used for derivation.date - The date used for key derivation.region - The region associated with the key.productCode - The product code related to the key.signMethod - The signing method used for derivation.Copyright © 2025. All Rights Reserved.