File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
src/main/java/com/wechat/pay/contrib/apache/httpclient/auth Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 99
1010public class PrivateKeySigner implements Signer {
1111
12- protected String certificateSerialNumber ;
13- protected PrivateKey privateKey ;
12+ protected final String certificateSerialNumber ;
13+ protected final PrivateKey privateKey ;
1414
1515 public PrivateKeySigner (String serialNumber , PrivateKey privateKey ) {
1616 this .certificateSerialNumber = serialNumber ;
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ public interface Signer {
66
77 class SignatureResult {
88
9- protected String sign ;
10- protected String certificateSerialNumber ;
9+ protected final String sign ;
10+ protected final String certificateSerialNumber ;
1111
1212 public SignatureResult (String sign , String serialNumber ) {
1313 this .sign = sign ;
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ public class WechatPay2Credentials implements Credentials {
1818
1919 protected static final String SYMBOLS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" ;
2020 protected static final SecureRandom RANDOM = new SecureRandom ();
21- protected String merchantId ;
22- protected Signer signer ;
21+ protected final String merchantId ;
22+ protected final Signer signer ;
2323
2424 public WechatPay2Credentials (String merchantId , Signer signer ) {
2525 this .merchantId = merchantId ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public class WechatPay2Validator implements Validator {
2222
2323 protected static final Logger log = LoggerFactory .getLogger (WechatPay2Validator .class );
2424
25- protected Verifier verifier ;
25+ protected final Verifier verifier ;
2626
2727 public WechatPay2Validator (Verifier verifier ) {
2828 this .verifier = verifier ;
You can’t perform that action at this time.
0 commit comments