package com.ruoyi.account.ali.model;
|
|
import lombok.ToString;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* @author xiaochen
|
* @ClassName ALiProperties
|
* @Description
|
* @date 2024-08-14 13:55
|
*/
|
@ToString
|
@Component
|
@ConfigurationProperties(prefix = "ali.conf")
|
public class AliProperties {
|
|
|
/**
|
* 商户私钥,您的PKCS8格式RSA2私钥
|
*/
|
private String privateKey;
|
/**
|
* 支付宝公钥,查看地址:https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
|
*/
|
private String alipayPublicKey;
|
/**
|
* 应用ID,您的APPID。
|
*/
|
private String appId;
|
|
/**
|
* HTTP(S) 连接超时时间,单位毫秒
|
*
|
*/
|
public int getHttpConnectTimeoutMs() {
|
return 6 * 1000;
|
}
|
|
/**
|
* HTTP(S) 读数据超时时间,单位毫秒
|
*/
|
public int getHttpReadTimeoutMs() {
|
return 8 * 1000;
|
}
|
|
public String getPrivateKey() {
|
return privateKey;
|
}
|
|
public void setPrivateKey(String privateKey) {
|
this.privateKey = privateKey;
|
}
|
|
public String getAlipayPublicKey() {
|
return alipayPublicKey;
|
}
|
|
public void setAlipayPublicKey(String alipayPublicKey) {
|
this.alipayPublicKey = alipayPublicKey;
|
}
|
|
public String getAppId() {
|
return appId;
|
}
|
|
public void setAppId(String appId) {
|
this.appId = appId;
|
}
|
}
|