mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-24 12:44:22 +08:00
增加两种证书获取方式
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.egzosn.pay.common.api;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* 证书存储方式
|
||||
* @author egan
|
||||
* email egzosn@gmail.com
|
||||
* date 2019/10/13.23:09
|
||||
*/
|
||||
public interface CertStore {
|
||||
|
||||
/**
|
||||
* 证书信息转化为对应的输入流
|
||||
*
|
||||
* @param cert 证书信息
|
||||
* @return 输入流
|
||||
* @throws IOException 找不到文件异常
|
||||
*/
|
||||
public abstract InputStream getInputStream(Object cert) throws IOException;
|
||||
}
|
||||
Reference in New Issue
Block a user