public abstract class BaseModel extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
appSecret |
private String |
certPath |
static String |
HMAC_SHA256 |
private static org.springframework.util.IdGenerator |
ID_GENERATOR |
private String |
nonceStr |
private static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER |
private String |
sign |
private String |
signType |
private static com.fasterxml.jackson.dataformat.xml.XmlMapper |
XML_MAPPER |
| 构造器和说明 |
|---|
BaseModel() |
| 限定符和类型 | 方法和说明 |
|---|---|
BaseModel |
appSecret(String appSecret) |
BaseModel |
certPath(String certPath) |
private org.springframework.web.client.RestTemplate |
getRestTemplateClientAuthentication(String mchId) |
private String |
hmacSha256(String src)
hmacSha256.
|
private <T> String |
link(T t)
按照格式拼接参数以生成签名
|
private String |
md5(String src)
md5摘要.
|
com.fasterxml.jackson.databind.JsonNode |
request(String mchId,
org.springframework.http.HttpMethod method,
String url) |
BaseModel |
signType(String signType) |
private String |
xml()
Xml string.
|
private static final com.fasterxml.jackson.dataformat.xml.XmlMapper XML_MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
private static final org.springframework.util.IdGenerator ID_GENERATOR
private final String nonceStr
private String sign
private String appSecret
private String certPath
private String signType
private String xml()
private <T> String link(T t)
T - the type parametert - the tpublic com.fasterxml.jackson.databind.JsonNode request(String mchId, org.springframework.http.HttpMethod method, String url)
private org.springframework.web.client.RestTemplate getRestTemplateClientAuthentication(String mchId) throws IOException, UnrecoverableKeyException, CertificateException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException
Copyright © 2021. All rights reserved.