FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

WxPayConfig增加支持byte数组方式设置证书 · Issue #586 · binarywang/WxJava · GitHub

WxPayConfig增加支持byte数组方式设置证书 #586

Description

需求原因,证书不再磁盘目录上,但是能拿到证书的content,因此提出此需求.

目前设置方式:
WxPayConfig payConfig = new WxPayConfig();
payConfig.setKeyPath(String path);

期望增加方式:
WxPayConfig payConfig = new WxPayConfig();
payConfig.setKeyContent(byte[] p12cert);

加载的时候使用如下方式即可加载:
ByteArrayInputStream instream = new ByteArrayInputStream(p12cert);
store.load(instream, key.toCharArray());

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL