public class WxCpTpDefaultConfigImpl extends Object implements WxCpTpConfigStorage, Serializable
| 构造器和说明 |
|---|
WxCpTpDefaultConfigImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
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相关
|
long |
getSuiteTicketExpiresTime()
已过时。
|
File |
getTmpDirFile()
Gets tmp dir file.
|
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 |
setAesKey(String aesKey)
已过时。
|
void |
setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder)
Sets apache http client builder.
|
void |
setBaseApiUrl(String baseUrl)
设置企业微信服务器 baseUrl.
|
void |
setCorpId(String corpId)
已过时。
|
void |
setCorpSecret(String corpSecret)
已过时。
|
void |
setHttpProxyHost(String httpProxyHost)
Sets http proxy host.
|
void |
setHttpProxyPassword(String httpProxyPassword)
Sets http proxy password.
|
void |
setHttpProxyPort(int httpProxyPort)
Sets http proxy port.
|
void |
setHttpProxyUsername(String httpProxyUsername)
Sets http proxy username.
|
void |
setOauth2redirectUri(String oauth2redirectUri)
Sets oauth 2 redirect uri.
|
void |
setSuiteAccessToken(String suiteAccessToken)
Sets suite access token.
|
void |
setSuiteAccessTokenExpiresTime(long suiteAccessTokenExpiresTime)
已过时。
|
void |
setSuiteId(String corpId)
已过时。
|
void |
setSuiteSecret(String corpSecret)
已过时。
|
void |
setSuiteTicket(String suiteTicket)
已过时。
|
void |
setSuiteTicketExpiresTime(long suiteTicketExpiresTime)
已过时。
|
void |
setTmpDirFile(File tmpDirFile)
Sets tmp dir file.
|
void |
setToken(String token)
已过时。
|
String |
toString() |
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.
|
public void setBaseApiUrl(String baseUrl)
WxCpTpConfigStoragesetBaseApiUrl 在接口中 WxCpTpConfigStoragebaseUrl - 企业微信服务器 Urlpublic String getApiUrl(String path)
WxCpTpConfigStoragegetApiUrl 在接口中 WxCpTpConfigStoragepath - the pathpublic String getSuiteAccessToken()
WxCpTpConfigStoragegetSuiteAccessToken 在接口中 WxCpTpConfigStoragepublic void setSuiteAccessToken(String suiteAccessToken)
suiteAccessToken - the suite access tokenpublic WxAccessToken getSuiteAccessTokenEntity()
WxCpTpConfigStoragegetSuiteAccessTokenEntity 在接口中 WxCpTpConfigStoragepublic boolean isSuiteAccessTokenExpired()
WxCpTpConfigStorageisSuiteAccessTokenExpired 在接口中 WxCpTpConfigStoragepublic void expireSuiteAccessToken()
WxCpTpConfigStorageexpireSuiteAccessToken 在接口中 WxCpTpConfigStoragepublic void updateSuiteAccessToken(WxAccessToken suiteAccessToken)
WxCpTpConfigStorageupdateSuiteAccessToken 在接口中 WxCpTpConfigStoragesuiteAccessToken - the suite access tokenpublic void updateSuiteAccessToken(String suiteAccessToken, int expiresInSeconds)
WxCpTpConfigStorageupdateSuiteAccessToken 在接口中 WxCpTpConfigStoragesuiteAccessToken - the suite access tokenexpiresInSeconds - the expires in seconds@Deprecated public void setSuiteAccessTokenExpiresTime(long suiteAccessTokenExpiresTime)
suiteAccessTokenExpiresTime - the suite access token expires timepublic String getSuiteTicket()
WxCpTpConfigStoragegetSuiteTicket 在接口中 WxCpTpConfigStorage@Deprecated public void setSuiteTicket(String suiteTicket)
suiteTicket - the suite ticketpublic boolean isSuiteTicketExpired()
WxCpTpConfigStorageisSuiteTicketExpired 在接口中 WxCpTpConfigStoragepublic void expireSuiteTicket()
WxCpTpConfigStorageexpireSuiteTicket 在接口中 WxCpTpConfigStoragepublic void updateSuiteTicket(String suiteTicket, int expiresInSeconds)
WxCpTpConfigStorageupdateSuiteTicket 在接口中 WxCpTpConfigStoragesuiteTicket - the suite ticketexpiresInSeconds - the expires in seconds@Deprecated public long getSuiteTicketExpiresTime()
@Deprecated public void setSuiteTicketExpiresTime(long suiteTicketExpiresTime)
suiteTicketExpiresTime - the suite ticket expires timepublic String getSuiteId()
WxCpTpConfigStoragegetSuiteId 在接口中 WxCpTpConfigStorage@Deprecated public void setSuiteId(String corpId)
corpId - the corp idpublic String getSuiteSecret()
WxCpTpConfigStoragegetSuiteSecret 在接口中 WxCpTpConfigStorage@Deprecated public void setSuiteSecret(String corpSecret)
corpSecret - the corp secretpublic String getToken()
WxCpTpConfigStoragegetToken 在接口中 WxCpTpConfigStorage@Deprecated public void setToken(String token)
token - the tokenpublic String getAesKey()
WxCpTpConfigStoragegetAesKey 在接口中 WxCpTpConfigStorage@Deprecated public void setAesKey(String aesKey)
aesKey - the aes keypublic String getCorpId()
WxCpTpConfigStoragegetCorpId 在接口中 WxCpTpConfigStorage@Deprecated public void setCorpId(String corpId)
corpId - the corp idpublic String getCorpSecret()
WxCpTpConfigStoragegetCorpSecret 在接口中 WxCpTpConfigStorage@Deprecated public void setCorpSecret(String corpSecret)
corpSecret - the corp secretpublic String getProviderSecret()
WxCpTpConfigStoragegetProviderSecret 在接口中 WxCpTpConfigStoragepublic String getAccessToken(String authCorpId)
WxCpTpConfigStoragegetAccessToken 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic WxAccessToken getAccessTokenEntity(String authCorpId)
WxCpTpConfigStoragegetAccessTokenEntity 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic boolean isAccessTokenExpired(String authCorpId)
WxCpTpConfigStorageisAccessTokenExpired 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic void expireAccessToken(String authCorpId)
WxCpTpConfigStorageexpireAccessToken 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic void updateAccessToken(String authCorpId, String accessToken, int expiredInSeconds)
WxCpTpConfigStorageupdateAccessToken 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idaccessToken - the access tokenexpiredInSeconds - the expired in secondspublic String getAuthCorpJsApiTicket(String authCorpId)
WxCpTpConfigStoragegetAuthCorpJsApiTicket 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic boolean isAuthCorpJsApiTicketExpired(String authCorpId)
WxCpTpConfigStorageisAuthCorpJsApiTicketExpired 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic void expireAuthCorpJsApiTicket(String authCorpId)
WxCpTpConfigStorageexpireAuthCorpJsApiTicket 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic void updateAuthCorpJsApiTicket(String authCorpId, String jsApiTicket, int expiredInSeconds)
WxCpTpConfigStorageupdateAuthCorpJsApiTicket 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idjsApiTicket - the js api ticketexpiredInSeconds - the expired in secondspublic String getAuthSuiteJsApiTicket(String authCorpId)
WxCpTpConfigStoragegetAuthSuiteJsApiTicket 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic boolean isAuthSuiteJsApiTicketExpired(String authCorpId)
WxCpTpConfigStorageisAuthSuiteJsApiTicketExpired 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic void expireAuthSuiteJsApiTicket(String authCorpId)
WxCpTpConfigStorageexpireAuthSuiteJsApiTicket 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic void updateAuthSuiteJsApiTicket(String authCorpId, String jsApiTicket, int expiredInSeconds)
WxCpTpConfigStorageupdateAuthSuiteJsApiTicket 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idjsApiTicket - the js api ticketexpiredInSeconds - the expired in secondspublic boolean isProviderTokenExpired()
WxCpTpConfigStorageisProviderTokenExpired 在接口中 WxCpTpConfigStoragepublic void updateProviderToken(String providerToken, int expiredInSeconds)
WxCpTpConfigStorageupdateProviderToken 在接口中 WxCpTpConfigStorageproviderToken - the provider tokenexpiredInSeconds - the expired in secondspublic String getProviderToken()
WxCpTpConfigStoragegetProviderToken 在接口中 WxCpTpConfigStoragepublic WxCpProviderToken getProviderTokenEntity()
WxCpTpConfigStoragegetProviderTokenEntity 在接口中 WxCpTpConfigStoragepublic void expireProviderToken()
WxCpTpConfigStorageexpireProviderToken 在接口中 WxCpTpConfigStoragepublic void setOauth2redirectUri(String oauth2redirectUri)
oauth2redirectUri - the oauth 2 redirect uripublic String getHttpProxyHost()
WxCpTpConfigStoragegetHttpProxyHost 在接口中 WxCpTpConfigStoragepublic void setHttpProxyHost(String httpProxyHost)
httpProxyHost - the http proxy hostpublic int getHttpProxyPort()
WxCpTpConfigStoragegetHttpProxyPort 在接口中 WxCpTpConfigStoragepublic void setHttpProxyPort(int httpProxyPort)
httpProxyPort - the http proxy portpublic String getHttpProxyUsername()
WxCpTpConfigStoragegetHttpProxyUsername 在接口中 WxCpTpConfigStoragepublic void setHttpProxyUsername(String httpProxyUsername)
httpProxyUsername - the http proxy usernamepublic String getHttpProxyPassword()
WxCpTpConfigStoragegetHttpProxyPassword 在接口中 WxCpTpConfigStoragepublic void setHttpProxyPassword(String httpProxyPassword)
httpProxyPassword - the http proxy passwordpublic File getTmpDirFile()
WxCpTpConfigStoragegetTmpDirFile 在接口中 WxCpTpConfigStoragepublic void setTmpDirFile(File tmpDirFile)
tmpDirFile - the tmp dir filepublic Lock getProviderAccessTokenLock()
WxCpTpConfigStoragegetProviderAccessTokenLock 在接口中 WxCpTpConfigStoragepublic Lock getSuiteAccessTokenLock()
WxCpTpConfigStoragegetSuiteAccessTokenLock 在接口中 WxCpTpConfigStoragepublic Lock getAccessTokenLock(String authCorpId)
WxCpTpConfigStoragegetAccessTokenLock 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic Lock getAuthCorpJsapiTicketLock(String authCorpId)
WxCpTpConfigStoragegetAuthCorpJsapiTicketLock 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic Lock getSuiteJsapiTicketLock(String authCorpId)
WxCpTpConfigStoragegetSuiteJsapiTicketLock 在接口中 WxCpTpConfigStorageauthCorpId - the auth corp idpublic ApacheHttpClientBuilder getApacheHttpClientBuilder()
WxCpTpConfigStoragegetApacheHttpClientBuilder 在接口中 WxCpTpConfigStoragepublic void setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder)
apacheHttpClientBuilder - the apache http client builderpublic boolean autoRefreshToken()
WxCpTpConfigStorageautoRefreshToken 在接口中 WxCpTpConfigStorageCopyright © 2024. All rights reserved.