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