支付配置增加附加参数

This commit is contained in:
egzosn
2018-01-29 15:31:30 +08:00
parent a64d72d073
commit c54a12b332
2 changed files with 15 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import java.util.concurrent.locks.ReentrantLock;
*/
public abstract class BasePayConfigStorage implements PayConfigStorage{
private volatile Object attach;
/**
* 证书管理器
*/
@@ -86,6 +87,15 @@ public abstract class BasePayConfigStorage implements PayConfigStorage{
*/
private boolean isCertSign = false;
@Override
public Object getAttach() {
return attach;
}
public void setAttach(Object attach) {
this.attach = attach;
}
@Override
public CertDescriptor getCertDescriptor() {
if (!isCertSign){

View File

@@ -15,6 +15,11 @@ import java.util.concurrent.locks.Lock;
*/
public interface PayConfigStorage {
/**
* 附加支付配置
* @return 附加信息
*/
Object getAttach();
/**
* 获取证书解释器
* @return 证书解释器