public class WeChatMpInRedisConfigStorage extends Object implements me.chanjar.weixin.mp.config.WxMpConfigStorage
| Constructor and Description |
|---|
WeChatMpInRedisConfigStorage() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
autoRefreshToken() |
void |
expireAccessToken() |
void |
expireTicket(me.chanjar.weixin.mp.enums.TicketType type) |
String |
getAccessToken() |
Lock |
getAccessTokenLock() |
String |
getAesKey() |
me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder |
getApacheHttpClientBuilder() |
String |
getAppId() |
long |
getExpiresTime() |
me.chanjar.weixin.mp.bean.WxMpHostConfig |
getHostConfig() |
String |
getHttpProxyHost() |
String |
getHttpProxyPassword() |
int |
getHttpProxyPort() |
String |
getHttpProxyUsername() |
String |
getOauth2redirectUri() |
String |
getSecret() |
String |
getTemplateId() |
String |
getTicket(me.chanjar.weixin.mp.enums.TicketType type) |
long |
getTicketExpiresTime(me.chanjar.weixin.mp.enums.TicketType type)
获取 ticket 过期时间
|
Lock |
getTicketLock(me.chanjar.weixin.mp.enums.TicketType type) |
File |
getTmpDirFile() |
String |
getToken() |
boolean |
isAccessTokenExpired() |
boolean |
isTicketExpired(me.chanjar.weixin.mp.enums.TicketType type) |
void |
updateAccessToken(String accessToken,
int expiresInSeconds) |
void |
updateAccessToken(me.chanjar.weixin.common.bean.WxAccessToken accessToken) |
void |
updateTicket(me.chanjar.weixin.mp.enums.TicketType type,
String ticket,
int expiresInSeconds) |
public String getAccessToken()
getAccessToken in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic Lock getAccessTokenLock()
getAccessTokenLock in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic boolean isAccessTokenExpired()
isAccessTokenExpired in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic void expireAccessToken()
expireAccessToken in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic void updateAccessToken(me.chanjar.weixin.common.bean.WxAccessToken accessToken)
updateAccessToken in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic void updateAccessToken(String accessToken, int expiresInSeconds)
updateAccessToken in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic String getAppId()
getAppId in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic String getSecret()
getSecret in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic String getToken()
getToken in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic String getAesKey()
getAesKey in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic String getTemplateId()
getTemplateId in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic long getExpiresTime()
getExpiresTime in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic String getOauth2redirectUri()
getOauth2redirectUri in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic String getHttpProxyHost()
getHttpProxyHost in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic int getHttpProxyPort()
getHttpProxyPort in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic String getHttpProxyUsername()
getHttpProxyUsername in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic String getHttpProxyPassword()
getHttpProxyPassword in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic File getTmpDirFile()
getTmpDirFile in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder getApacheHttpClientBuilder()
getApacheHttpClientBuilder in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic boolean autoRefreshToken()
autoRefreshToken in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic String getTicket(me.chanjar.weixin.mp.enums.TicketType type)
getTicket in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic Lock getTicketLock(me.chanjar.weixin.mp.enums.TicketType type)
getTicketLock in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic long getTicketExpiresTime(me.chanjar.weixin.mp.enums.TicketType type)
type - ticket类型public boolean isTicketExpired(me.chanjar.weixin.mp.enums.TicketType type)
isTicketExpired in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic void expireTicket(me.chanjar.weixin.mp.enums.TicketType type)
expireTicket in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic void updateTicket(me.chanjar.weixin.mp.enums.TicketType type,
String ticket,
int expiresInSeconds)
updateTicket in interface me.chanjar.weixin.mp.config.WxMpConfigStoragepublic me.chanjar.weixin.mp.bean.WxMpHostConfig getHostConfig()
getHostConfig in interface me.chanjar.weixin.mp.config.WxMpConfigStorageCopyright © 2018–2020. All rights reserved.