mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-25 16:35:06 +08:00
【功能优化】增加支付宝接口内容加密支持,注意需要和管理页面同时修改 #IAFYDQ
This commit is contained in:
@ -26,6 +26,11 @@ public class AlipayPayClientConfig implements PayClientConfig {
|
||||
*/
|
||||
public static final Integer MODE_CERTIFICATE = 2;
|
||||
|
||||
/**
|
||||
* 接口内容加密方式 - AES 加密
|
||||
*/
|
||||
public static final String ENC_TYPE_AES = "AES";
|
||||
|
||||
/**
|
||||
* 签名算法类型 - RSA
|
||||
*/
|
||||
@ -92,6 +97,19 @@ public class AlipayPayClientConfig implements PayClientConfig {
|
||||
@NotBlank(message = "指定根证书内容字符串不能为空", groups = {ModeCertificate.class})
|
||||
private String rootCertContent;
|
||||
|
||||
/**
|
||||
* 接口内容加密方式,如果为空,将使用无加密方式
|
||||
* 如果要加密,目前支付宝只有 AES 一种加密方式
|
||||
* <a href="https://opendocs.alipay.com/common/02mse3">支付宝开放平台</a>
|
||||
* @see AlipayPayClientConfig#ENC_TYPE_AES
|
||||
*/
|
||||
private String encryptType;
|
||||
|
||||
/**
|
||||
* 接口内容加密的私钥
|
||||
*/
|
||||
private String encryptKey;
|
||||
|
||||
public interface ModePublicKey {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user