diff --git a/core/src/main/java/com/wechat/pay/java/core/AbstractRSAConfig.java b/core/src/main/java/com/wechat/pay/java/core/AbstractRSAConfig.java index ec039bd5..72e05787 100644 --- a/core/src/main/java/com/wechat/pay/java/core/AbstractRSAConfig.java +++ b/core/src/main/java/com/wechat/pay/java/core/AbstractRSAConfig.java @@ -57,9 +57,9 @@ protected AbstractRSAConfig( private final String merchantSerialNumber; /** 微信支付平台证书Provider */ private final CertificateProvider certificateProvider; - /** 微信支付凭证公钥 */ + /** 微信支付平台公钥 */ private final PublicKey publicKey; - /** 微信支付凭证公钥Id */ + /** 微信支付平台公钥Id */ private final String publicKeyId; @Override diff --git a/core/src/main/java/com/wechat/pay/java/core/RSAPublicKeyConfig.java b/core/src/main/java/com/wechat/pay/java/core/RSAPublicKeyConfig.java index 6d3f1bdd..f5a1a223 100644 --- a/core/src/main/java/com/wechat/pay/java/core/RSAPublicKeyConfig.java +++ b/core/src/main/java/com/wechat/pay/java/core/RSAPublicKeyConfig.java @@ -13,7 +13,7 @@ import java.nio.charset.StandardCharsets; import java.security.PublicKey; -/** 使用平台公钥的RSA配置类。 每次构造都要求传入平台公钥以及平台公钥id,如果是使用平台证书建议用RSAAutoCertificateConfig类 */ +/** 使用微信支付平台公钥的RSA配置类。 每次构造都要求传入平台公钥以及平台公钥id,如果使用平台证书建议用RSAAutoCertificateConfig类 */ public final class RSAPublicKeyConfig extends AbstractRSAConfig implements NotificationConfig { private final PublicKey publicKey; diff --git a/core/src/test/java/com/wechat/pay/java/core/RSAPublicKeyConfigTest.java b/core/src/test/java/com/wechat/pay/java/core/RSAPublicKeyConfigTest.java index f6fe4fe9..b84940d6 100644 --- a/core/src/test/java/com/wechat/pay/java/core/RSAPublicKeyConfigTest.java +++ b/core/src/test/java/com/wechat/pay/java/core/RSAPublicKeyConfigTest.java @@ -60,7 +60,7 @@ static Stream BuilderProvider() { .publicKeyId(WECHAT_PAY_CERTIFICATE_SERIAL_NUMBER) .apiV3Key(API_V3_KEY), - // with http client builder + // with publickey new Builder() .merchantId("1123456") .privateKeyFromPath(MERCHANT_PRIVATE_KEY_PATH)