public class OpenApiUtil extends Object
| 构造器和说明 |
|---|
OpenApiUtil()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
decrypt(OpenApiBody openApiBody,
String priKey)
已过时。
解密
|
static OpenApiBody |
encrypt(String content,
String pubKey)
已过时。
加密
|
static String |
sign(OpenApiBody openApiBody,
String priKey,
String salt)
已过时。
签名
|
static boolean |
verify(OpenApiBody openApiBody,
String pubKey,
String sign,
String salt)
已过时。
验签
|
public static String sign(OpenApiBody openApiBody, String priKey, String salt) throws Exception
openApiBody - 请求体priKey - 私钥salt - 盐值Exception - 可能会发生异常,请考虑它public static boolean verify(OpenApiBody openApiBody, String pubKey, String sign, String salt) throws Exception
openApiBody - 请求体pubKey - 公钥sign - 签名salt - 盐值Exception - 可能会发生异常,请考虑它public static OpenApiBody encrypt(String content, String pubKey) throws Exception
content - 明文pubKey - 公钥Exception - 可能会发生异常,请考虑它public static String decrypt(OpenApiBody openApiBody, String priKey) throws Exception
openApiBody - 加密bodypriKey - 私钥Exception - 可能会发生异常,请考虑它Copyright © 2025. All rights reserved.