public class ApiCryptoUtil extends Object
| 构造器和说明 |
|---|
ApiCryptoUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
checkSecretKey(String key,
String secretKey,
String keyName)
校验加密密钥
|
static byte[] |
decryptData(ApiCryptoProperties properties,
byte[] jsonData,
CryptoInfoBean infoBean)
选择解密方式并进行解密
|
static String |
encryptData(ApiCryptoProperties properties,
byte[] jsonData,
CryptoInfoBean infoBean)
选择加密方式并进行加密
|
static CryptoInfoBean |
getDecryptInfo(org.springframework.core.MethodParameter methodParameter)
获取方法控制器上的解密注解信息
|
static CryptoInfoBean |
getEncryptInfo(org.springframework.core.MethodParameter methodParameter)
获取方法控制器上的加密注解信息
|
public static CryptoInfoBean getEncryptInfo(org.springframework.core.MethodParameter methodParameter)
methodParameter - 控制器方法public static CryptoInfoBean getDecryptInfo(org.springframework.core.MethodParameter methodParameter)
methodParameter - 控制器方法public static String encryptData(ApiCryptoProperties properties, byte[] jsonData, CryptoInfoBean infoBean)
jsonData - json 数据infoBean - 加密信息public static byte[] decryptData(ApiCryptoProperties properties, byte[] jsonData, CryptoInfoBean infoBean)
jsonData - json 数据infoBean - 加密信息Copyright © 2025. All rights reserved.