mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-09 22:00:49 +08:00
代码整理
This commit is contained in:
@@ -41,6 +41,10 @@ public class UnionPayConfigStorage extends BasePayConfigStorage {
|
||||
* 应用私钥证书
|
||||
*/
|
||||
private Object keyPrivateCert;
|
||||
/**
|
||||
* 应用私钥证书,rsa_private pkcs8格式 生成签名时使用
|
||||
*/
|
||||
private String keyPrivateCertPwd;
|
||||
|
||||
/**
|
||||
* 中级证书
|
||||
@@ -55,6 +59,7 @@ public class UnionPayConfigStorage extends BasePayConfigStorage {
|
||||
* 证书存储类型
|
||||
*/
|
||||
private CertStoreType certStoreType;
|
||||
|
||||
/**
|
||||
* 设置私钥证书
|
||||
*
|
||||
@@ -128,9 +133,17 @@ public class UnionPayConfigStorage extends BasePayConfigStorage {
|
||||
return certStoreType.getInputStream(acpRootCert);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取私钥证书密码
|
||||
* @return 私钥证书密码
|
||||
*/
|
||||
public String getKeyPrivateCertPwd() {
|
||||
return keyPrivateCertPwd;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void setKeyPrivateCertPwd(String keyPrivateCertPwd) {
|
||||
this.keyPrivateCertPwd = keyPrivateCertPwd;
|
||||
}
|
||||
@Override
|
||||
public String getAppid() {
|
||||
return null;
|
||||
|
||||
@@ -70,7 +70,7 @@ public class UnionPayService extends BasePayService<UnionPayConfigStorage> {
|
||||
* @param payConfigStorage 支付配置
|
||||
*/
|
||||
public UnionPayService(UnionPayConfigStorage payConfigStorage) {
|
||||
super(payConfigStorage);
|
||||
this(payConfigStorage, null);
|
||||
}
|
||||
|
||||
public UnionPayService(UnionPayConfigStorage payConfigStorage, HttpConfigStorage configStorage) {
|
||||
|
||||
Reference in New Issue
Block a user