public class DigitalEnvelopeUtils extends Object
| 构造器和说明 |
|---|
DigitalEnvelopeUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
decrypt(String cipherText,
PrivateKey privateKey)
拆开数字信封
|
static String |
decrypt(String cipherText,
String credentialType)
拆开数字信(使用默认sdk配置文件中的私钥)
|
static String |
decrypt(String cipherText,
String appKey,
PrivateKey privateKey)
拆开数字信封
|
static String |
decrypt(String cipherText,
String appKey,
PrivateKey privateKey,
String serverRoot)
拆开数字信封
|
static String |
decrypt(String cipherText,
String appKey,
String credentialType)
拆开数字信封(使用指定appKey配置文件中的私钥)
|
static void |
verify(String content,
String signature,
PublicKey publicKey)
验证签名(rsa)
|
public static String decrypt(String cipherText, PrivateKey privateKey)
cipherText - 待解密内容privateKey - 私钥(用于解密)public static String decrypt(String cipherText, String appKey, PrivateKey privateKey)
cipherText - 待解密内容appKey - appKeyprivateKey - 私钥(用于解密)public static String decrypt(String cipherText, String appKey, PrivateKey privateKey, String serverRoot)
cipherText - 待解密内容appKey - appKeyprivateKey - 私钥(用于解密)serverRoot - 平台证书请求端点public static String decrypt(String cipherText, String credentialType)
cipherText - 待解密内容credentialType - 证书类型(用于解密)"RSA2048"public static String decrypt(String cipherText, String appKey, String credentialType)
cipherText - 待解密内容appKey - appKeycredentialType - 证书类型(用于解密)"RSA2048"Copyright © 2023. All rights reserved.