类 BaseModel
- java.lang.Object
-
- cn.crushes.cloud.core.pay.wechat.v2.model.BaseModel
-
- 直接已知子类:
BaseProfitSharingModel,BaseProfitSharingReceiverModel,GroupRedpackModel,ProfitSharingFinishModel,ProfitSharingOrderAmountQueryModel,ProfitSharingQueryModel,ProfitSharingReturnModel,ProfitSharingReturnQueryModel,RedPackInfoModel,RedPackModel,RefundModel,TransferInfoModel,TransferModel
public abstract class BaseModel extends Object
The type Base model.- 作者:
- youta
-
-
字段概要
字段 修饰符和类型 字段 说明 private StringappSecretprivate StringcertPathstatic StringHMAC_SHA256private static org.springframework.util.IdGeneratorID_GENERATORprivate StringnonceStrprivate static com.fasterxml.jackson.databind.ObjectMapperOBJECT_MAPPERprivate Stringsignprivate StringsignTypeprivate static com.fasterxml.jackson.dataformat.xml.XmlMapperXML_MAPPER
-
构造器概要
构造器 构造器 说明 BaseModel()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BaseModelappSecret(String appSecret)BaseModelcertPath(String certPath)private org.springframework.web.client.RestTemplategetRestTemplateClientAuthentication(String mchId)private StringhmacSha256(String src)hmacSha256.private <T> Stringlink(T t)按照格式拼接参数以生成签名private Stringmd5(String src)md5摘要.com.fasterxml.jackson.databind.JsonNoderequest(String mchId, org.springframework.http.HttpMethod method, String url)BaseModelsignType(String signType)private Stringxml()Xml string.
-
-
-
字段详细资料
-
XML_MAPPER
private static final com.fasterxml.jackson.dataformat.xml.XmlMapper XML_MAPPER
-
OBJECT_MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
-
ID_GENERATOR
private static final org.springframework.util.IdGenerator ID_GENERATOR
-
nonceStr
private final String nonceStr
-
sign
private String sign
-
appSecret
private String appSecret
-
certPath
private String certPath
-
signType
private String signType
-
-
方法详细资料
-
xml
private String xml()
Xml string.- 返回:
- the string
-
link
private <T> String link(T t)
按照格式拼接参数以生成签名- 类型参数:
T- the type parameter- 参数:
t- the t- 返回:
- the map
-
request
public com.fasterxml.jackson.databind.JsonNode request(String mchId, org.springframework.http.HttpMethod method, String url)
-
getRestTemplateClientAuthentication
private org.springframework.web.client.RestTemplate getRestTemplateClientAuthentication(String mchId) throws IOException, UnrecoverableKeyException, CertificateException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException
-
-