public interface WxCpTpConfigStorage
限定符和类型 | 方法和说明 |
---|---|
boolean |
autoRefreshToken()
Auto refresh token boolean.
|
void |
expireAccessToken(java.lang.String authCorpId)
Expire access token.
|
void |
expireAuthCorpJsApiTicket(java.lang.String authCorpId)
Expire auth corp js api ticket.
|
void |
expireAuthSuiteJsApiTicket(java.lang.String authCorpId)
Expire auth suite js api ticket.
|
void |
expireProviderToken()
Expire provider token.
|
void |
expireSuiteAccessToken()
Expire suite access token.
|
void |
expireSuiteTicket()
Expire suite ticket.
|
java.lang.String |
getAccessToken(java.lang.String authCorpId)
授权企业的access token相关
|
me.chanjar.weixin.common.bean.WxAccessToken |
getAccessTokenEntity(java.lang.String authCorpId)
Gets access token entity.
|
java.util.concurrent.locks.Lock |
getAccessTokenLock(java.lang.String authCorpId)
Gets access token lock.
|
java.lang.String |
getAesKey()
Gets aes key.
|
me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder |
getApacheHttpClientBuilder()
Gets apache http client builder.
|
java.lang.String |
getApiUrl(java.lang.String path)
读取企业微信 API Url.
|
java.lang.String |
getAuthCorpJsApiTicket(java.lang.String authCorpId)
授权企业的js api ticket相关
|
java.util.concurrent.locks.Lock |
getAuthCorpJsapiTicketLock(java.lang.String authCorpId)
Gets auth corp jsapi ticket lock.
|
java.lang.String |
getAuthSuiteJsApiTicket(java.lang.String authCorpId)
授权企业的第三方应用js api ticket相关
|
java.lang.String |
getCorpId()
企微服务商企业ID / 企业secret
|
java.lang.String |
getCorpSecret()
Gets corp secret.
|
java.lang.String |
getHttpProxyHost()
网络代理相关
|
java.lang.String |
getHttpProxyPassword()
Gets http proxy password.
|
int |
getHttpProxyPort()
Gets http proxy port.
|
java.lang.String |
getHttpProxyUsername()
Gets http proxy username.
|
java.util.concurrent.locks.Lock |
getProviderAccessTokenLock()
Gets provider access token lock.
|
java.lang.String |
getProviderSecret()
服务商secret
|
java.lang.String |
getProviderToken()
Gets provider token.
|
WxCpProviderToken |
getProviderTokenEntity()
Gets provider token entity.
|
java.lang.String |
getSuiteAccessToken()
第三方应用的suite access token相关
|
me.chanjar.weixin.common.bean.WxAccessToken |
getSuiteAccessTokenEntity()
获取suite_access_token和剩余过期时间
|
java.util.concurrent.locks.Lock |
getSuiteAccessTokenLock()
Gets suite access token lock.
|
java.lang.String |
getSuiteId()
第三方应用的其他配置,来自于企微配置
|
java.util.concurrent.locks.Lock |
getSuiteJsapiTicketLock(java.lang.String authCorpId)
Gets suite jsapi ticket lock.
|
java.lang.String |
getSuiteSecret()
Gets suite secret.
|
java.lang.String |
getSuiteTicket()
第三方应用的suite ticket相关
|
java.io.File |
getTmpDirFile()
已过时。
|
java.lang.String |
getToken()
Gets token.
|
boolean |
isAccessTokenExpired(java.lang.String authCorpId)
Is access token expired boolean.
|
boolean |
isAuthCorpJsApiTicketExpired(java.lang.String authCorpId)
Is auth corp js api ticket expired boolean.
|
boolean |
isAuthSuiteJsApiTicketExpired(java.lang.String authCorpId)
Is auth suite js api ticket expired boolean.
|
boolean |
isProviderTokenExpired()
Is provider token expired boolean.
|
boolean |
isSuiteAccessTokenExpired()
Is suite access token expired boolean.
|
boolean |
isSuiteTicketExpired()
Is suite ticket expired boolean.
|
void |
setBaseApiUrl(java.lang.String baseUrl)
设置企业微信服务器 baseUrl.
|
void |
updateAccessToken(java.lang.String authCorpId,
java.lang.String accessToken,
int expiredInSeconds)
Update access token.
|
void |
updateAuthCorpJsApiTicket(java.lang.String authCorpId,
java.lang.String jsApiTicket,
int expiredInSeconds)
Update auth corp js api ticket.
|
void |
updateAuthSuiteJsApiTicket(java.lang.String authCorpId,
java.lang.String jsApiTicket,
int expiredInSeconds)
Update auth suite js api ticket.
|
void |
updateProviderToken(java.lang.String providerToken,
int expiredInSeconds)
Update provider token.
|
void |
updateSuiteAccessToken(java.lang.String suiteAccessToken,
int expiresInSeconds)
Update suite access token.
|
void |
updateSuiteAccessToken(me.chanjar.weixin.common.bean.WxAccessToken suiteAccessToken)
Update suite access token.
|
void |
updateSuiteTicket(java.lang.String suiteTicket,
int expiresInSeconds)
Update suite ticket.
|
void setBaseApiUrl(java.lang.String baseUrl)
baseUrl
- 企业微信服务器 Urljava.lang.String getApiUrl(java.lang.String path)
path
- the pathjava.lang.String getSuiteAccessToken()
me.chanjar.weixin.common.bean.WxAccessToken getSuiteAccessTokenEntity()
boolean isSuiteAccessTokenExpired()
void expireSuiteAccessToken()
void updateSuiteAccessToken(me.chanjar.weixin.common.bean.WxAccessToken suiteAccessToken)
suiteAccessToken
- the suite access tokenvoid updateSuiteAccessToken(java.lang.String suiteAccessToken, int expiresInSeconds)
suiteAccessToken
- the suite access tokenexpiresInSeconds
- the expires in secondsjava.lang.String getSuiteTicket()
boolean isSuiteTicketExpired()
void expireSuiteTicket()
void updateSuiteTicket(java.lang.String suiteTicket, int expiresInSeconds)
suiteTicket
- the suite ticketexpiresInSeconds
- the expires in secondsjava.lang.String getSuiteId()
java.lang.String getSuiteSecret()
java.lang.String getToken()
java.lang.String getAesKey()
java.lang.String getCorpId()
java.lang.String getCorpSecret()
java.lang.String getProviderSecret()
java.lang.String getAccessToken(java.lang.String authCorpId)
authCorpId
- the auth corp idme.chanjar.weixin.common.bean.WxAccessToken getAccessTokenEntity(java.lang.String authCorpId)
authCorpId
- the auth corp idboolean isAccessTokenExpired(java.lang.String authCorpId)
authCorpId
- the auth corp idvoid expireAccessToken(java.lang.String authCorpId)
authCorpId
- the auth corp idvoid updateAccessToken(java.lang.String authCorpId, java.lang.String accessToken, int expiredInSeconds)
authCorpId
- the auth corp idaccessToken
- the access tokenexpiredInSeconds
- the expired in secondsjava.lang.String getAuthCorpJsApiTicket(java.lang.String authCorpId)
authCorpId
- the auth corp idboolean isAuthCorpJsApiTicketExpired(java.lang.String authCorpId)
authCorpId
- the auth corp idvoid expireAuthCorpJsApiTicket(java.lang.String authCorpId)
authCorpId
- the auth corp idvoid updateAuthCorpJsApiTicket(java.lang.String authCorpId, java.lang.String jsApiTicket, int expiredInSeconds)
authCorpId
- the auth corp idjsApiTicket
- the js api ticketexpiredInSeconds
- the expired in secondsjava.lang.String getAuthSuiteJsApiTicket(java.lang.String authCorpId)
authCorpId
- the auth corp idboolean isAuthSuiteJsApiTicketExpired(java.lang.String authCorpId)
authCorpId
- the auth corp idvoid expireAuthSuiteJsApiTicket(java.lang.String authCorpId)
authCorpId
- the auth corp idvoid updateAuthSuiteJsApiTicket(java.lang.String authCorpId, java.lang.String jsApiTicket, int expiredInSeconds)
authCorpId
- the auth corp idjsApiTicket
- the js api ticketexpiredInSeconds
- the expired in secondsboolean isProviderTokenExpired()
void updateProviderToken(java.lang.String providerToken, int expiredInSeconds)
providerToken
- the provider tokenexpiredInSeconds
- the expired in secondsjava.lang.String getProviderToken()
WxCpProviderToken getProviderTokenEntity()
void expireProviderToken()
java.lang.String getHttpProxyHost()
int getHttpProxyPort()
java.lang.String getHttpProxyUsername()
java.lang.String getHttpProxyPassword()
me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder getApacheHttpClientBuilder()
boolean autoRefreshToken()
@Deprecated java.io.File getTmpDirFile()
java.util.concurrent.locks.Lock getProviderAccessTokenLock()
java.util.concurrent.locks.Lock getSuiteAccessTokenLock()
java.util.concurrent.locks.Lock getAccessTokenLock(java.lang.String authCorpId)
authCorpId
- the auth corp idjava.util.concurrent.locks.Lock getAuthCorpJsapiTicketLock(java.lang.String authCorpId)
authCorpId
- the auth corp idjava.util.concurrent.locks.Lock getSuiteJsapiTicketLock(java.lang.String authCorpId)
authCorpId
- the auth corp id