public class SignUtils extends Object
| Constructor and Description |
|---|
SignUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
signAndBase64Encode(byte[] body,
String key,
String algorithm,
String charset)
对API请求进行签名并进行BASE 64编码。
|
static byte[] |
signApiRequest(byte[] body,
byte[] key,
String algorithm)
对API请求进行签名
|
public static byte[] signApiRequest(byte[] body,
byte[] key,
String algorithm)
body - 需要签名的内容key - 签名的密钥algorithm - 官名算法Copyright © 2021. All rights reserved.