public interface WxOpenConfigStorage
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
autoRefreshToken()
是否自动刷新token
|
void |
expireAuthorizerAccessToken(String appId)
强制将access token过期掉
|
void |
expireCardApiTicket(String appId)
强制将卡券api ticket过期掉
|
void |
expireComponentAccessToken()
Expire component access token.
|
void |
expireJsapiTicket(String appId)
强制将jsapi ticket过期掉
|
ApacheHttpClientBuilder |
getApacheHttpClientBuilder()
Gets apache http client builder.
|
String |
getAuthorizerAccessToken(String appId)
Gets authorizer access token.
|
String |
getAuthorizerRefreshToken(String appId)
Gets authorizer refresh token.
|
String |
getCardApiTicket(String appId)
Gets card api ticket.
|
String |
getComponentAccessToken()
Gets component access token.
|
Lock |
getComponentAccessTokenLock()
Gets component access token lock.
|
String |
getComponentAesKey()
Gets component aes key.
|
String |
getComponentAppId()
Gets component app id.
|
String |
getComponentAppSecret()
Gets component app secret.
|
String |
getComponentToken()
Gets component token.
|
String |
getComponentVerifyTicket()
Gets component verify ticket.
|
String |
getHttpProxyHost()
Gets http proxy host.
|
String |
getHttpProxyPassword()
Gets http proxy password.
|
int |
getHttpProxyPort()
Gets http proxy port.
|
String |
getHttpProxyUsername()
Gets http proxy username.
|
String |
getJsapiTicket(String appId)
Gets jsapi ticket.
|
Lock |
getLockByKey(String key)
Gets lock by key.
|
WxMaConfig |
getWxMaConfig(String appId)
Gets wx ma config.
|
WxMpConfigStorage |
getWxMpConfigStorage(String appId)
Gets wx mp config storage.
|
boolean |
isAuthorizerAccessTokenExpired(String appId)
Is authorizer access token expired boolean.
|
boolean |
isCardApiTicketExpired(String appId)
Is card api ticket expired boolean.
|
boolean |
isComponentAccessTokenExpired()
Is component access token expired boolean.
|
boolean |
isJsapiTicketExpired(String appId)
Is jsapi ticket expired boolean.
|
void |
setAuthorizerRefreshToken(String appId,
String authorizerRefreshToken)
Sets authorizer refresh token.
|
void |
setComponentAesKey(String componentAesKey)
Sets component aes key.
|
void |
setComponentAppId(String componentAppId)
Sets component app id.
|
void |
setComponentAppSecret(String componentAppSecret)
Sets component app secret.
|
void |
setComponentToken(String componentToken)
Sets component token.
|
void |
setComponentVerifyTicket(String componentVerifyTicket)
Sets component verify ticket.
|
void |
setWxOpenInfo(String componentAppId,
String componentAppSecret,
String componentToken,
String componentAesKey)
设置第三方平台基础信息
|
void |
updateAuthorizerAccessToken(String appId,
String authorizerAccessToken,
int expiresInSeconds)
应该是线程安全的
|
void |
updateAuthorizerAccessToken(String appId,
WxOpenAuthorizerAccessToken authorizerAccessToken)
应该是线程安全的
|
void |
updateCardApiTicket(String appId,
String cardApiTicket,
int expiresInSeconds)
应该是线程安全的
|
void |
updateComponentAccessToken(String componentAccessToken,
int expiresInSeconds)
应该是线程安全的
|
void |
updateComponentAccessToken(WxOpenComponentAccessToken componentAccessToken)
Update component access token.
|
void |
updateJsapiTicket(String appId,
String jsapiTicket,
int expiresInSeconds)
应该是线程安全的
|
String getComponentAppId()
void setComponentAppId(String componentAppId)
componentAppId - the component app idString getComponentAppSecret()
void setComponentAppSecret(String componentAppSecret)
componentAppSecret - the component app secretString getComponentToken()
void setComponentToken(String componentToken)
componentToken - the component tokenString getComponentAesKey()
void setComponentAesKey(String componentAesKey)
componentAesKey - the component aes keyString getComponentVerifyTicket()
void setComponentVerifyTicket(String componentVerifyTicket)
componentVerifyTicket - the component verify ticketString getComponentAccessToken()
boolean isComponentAccessTokenExpired()
void expireComponentAccessToken()
void updateComponentAccessToken(WxOpenComponentAccessToken componentAccessToken)
componentAccessToken - the component access tokenString getHttpProxyHost()
int getHttpProxyPort()
String getHttpProxyUsername()
String getHttpProxyPassword()
ApacheHttpClientBuilder getApacheHttpClientBuilder()
WxMpConfigStorage getWxMpConfigStorage(String appId)
appId - the app idWxMaConfig getWxMaConfig(String appId)
appId - the app idLock getComponentAccessTokenLock()
void updateComponentAccessToken(String componentAccessToken, int expiresInSeconds)
componentAccessToken - 新的accessToken值expiresInSeconds - 过期时间,以秒为单位boolean autoRefreshToken()
String getAuthorizerRefreshToken(String appId)
appId - the app idvoid setAuthorizerRefreshToken(String appId, String authorizerRefreshToken)
appId - the app idauthorizerRefreshToken - the authorizer refresh tokenString getAuthorizerAccessToken(String appId)
appId - the app idboolean isAuthorizerAccessTokenExpired(String appId)
appId - the app idvoid expireAuthorizerAccessToken(String appId)
appId - the app idvoid updateAuthorizerAccessToken(String appId, WxOpenAuthorizerAccessToken authorizerAccessToken)
appId - the app idauthorizerAccessToken - 要更新的WxAccessToken对象void updateAuthorizerAccessToken(String appId, String authorizerAccessToken, int expiresInSeconds)
appId - the app idauthorizerAccessToken - 新的accessToken值expiresInSeconds - 过期时间,以秒为单位String getJsapiTicket(String appId)
appId - the app idboolean isJsapiTicketExpired(String appId)
appId - the app idvoid expireJsapiTicket(String appId)
appId - the app idvoid updateJsapiTicket(String appId, String jsapiTicket, int expiresInSeconds)
appId - the app idjsapiTicket - 新的jsapi ticket值expiresInSeconds - 过期时间,以秒为单位String getCardApiTicket(String appId)
appId - the app idboolean isCardApiTicketExpired(String appId)
appId - the app idvoid expireCardApiTicket(String appId)
appId - the app idvoid updateCardApiTicket(String appId, String cardApiTicket, int expiresInSeconds)
appId - the app idcardApiTicket - 新的cardApi ticket值expiresInSeconds - 过期时间,以秒为单位Copyright © 2020. All rights reserved.