Repository navigation
refactor(依赖):移除非必要的Bouncy Castle依赖 - #4153
Conversation
小程序删除旧解密方法,支付使用 JDK 加载 RSA 公钥并保留 PKCS#1 与 SPKI 支持。更新迁移说明,提示公开 API 和传递依赖变化。
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7f040c5822
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the dependency cleanup, although builds and tests were not run.
No open issues 🎉
What changed in this PR
本 PR 精简 WxJava 部分模块的 Bouncy Castle 依赖,改用 JDK 加载支付公钥,并说明小程序公开 API 的迁移影响。
主要变更:
- 移除四个模块的
bcpkix-jdk18on依赖。 - 银行卡付款保留 PKCS#1、SPKI 公钥支持,显式指定 OAEP 参数并新增回归测试。
- 删除小程序旧解密方法,更新测试及 API、传递依赖和 Provider 注册的迁移说明。
本次未运行构建或测试。
| File | Description |
|---|---|
weixin-java-store/pom.xml |
移除 BC 依赖。 |
weixin-java-pay/src/test/resources/testng.xml |
注册银行卡加密测试。 |
weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/EntPayBankEncryptionTest.java |
覆盖两种公钥格式、密文签名及无效公钥。 |
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/EntPayServiceImpl.java |
使用 JDK 加载 RSA 公钥并执行 OAEP 加密。 |
weixin-java-pay/pom.xml |
移除 BC 依赖。 |
weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/util/crypt/WxMaCryptUtilsTest.java |
更新保留解密方法的断言,删除旧方法测试。 |
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/crypt/WxMaCryptUtils.java |
删除 decryptAnotherWay 及相关导入。 |
weixin-java-miniapp/pom.xml |
移除 BC 依赖。 |
weixin-java-channel/pom.xml |
移除 BC 依赖。 |
README.md |
补充解密行为、公开 API 和 BC 依赖迁移说明。 |
Review effort: Balanced
移除非必要的Bouncy Castle依赖
小程序删除旧解密方法,支付使用 JDK 加载 RSA 公钥并保留 PKCS#1 与 SPKI 支持。更新迁移说明,提示公开 API 和传递依赖变化。