mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-13 17:30:18 +08:00
微信支付请求头增加商户公钥ID
This commit is contained in:
@@ -22,6 +22,10 @@ public abstract class BasePayConfigStorage implements PayConfigStorage {
|
||||
*/
|
||||
private String keyPrivate;
|
||||
|
||||
/**
|
||||
* 支付平台公钥Id(签名校验使用)
|
||||
*/
|
||||
private String keyPublicId;
|
||||
/**
|
||||
* 支付平台公钥(签名校验使用)
|
||||
*/
|
||||
@@ -95,6 +99,14 @@ public abstract class BasePayConfigStorage implements PayConfigStorage {
|
||||
this.keyPrivate = keyPrivate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getKeyPublicId() {
|
||||
return keyPublicId;
|
||||
}
|
||||
|
||||
public void setKeyPublicId(String keyPublicId) {
|
||||
this.keyPublicId = keyPublicId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getKeyPublic() {
|
||||
|
||||
@@ -88,6 +88,13 @@ public interface PayConfigStorage extends Attrs {
|
||||
*/
|
||||
String getInputCharset();
|
||||
|
||||
/**
|
||||
* 支付平台公钥ID(签名校验使用)
|
||||
*
|
||||
* @return 公钥
|
||||
*/
|
||||
String getKeyPublicId();
|
||||
|
||||
/**
|
||||
* 支付平台公钥(签名校验使用)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user