public class WxCpTpDefaultConfigImpl extends Object implements WxCpTpConfigStorage, Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
corpId
企微服务商企业ID & 企业secret,来自于企微配置
|
protected String |
encodingAESKey
第三方应用的EncodingAESKey,用来检查签名
|
protected String |
providerSecret
服务商secret
|
protected String |
suiteId
第三方应用的其他配置,来自于企微配置
|
protected String |
suiteSecret |
protected String |
token
第三方应用的token,用来检查应用的签名
|
| 构造器和说明 |
|---|
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.
|
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 |
getEncodingAESKey()
Gets aes key.
|
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 |
setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder)
Sets apache http client builder.
|
void |
setBaseApiUrl(String baseUrl)
设置企业微信服务器 baseUrl.
|
void |
setCorpId(String corpId)
Sets corp id.
|
void |
setEncodingAESKey(String encodingAESKey)
Sets aes key. encodingAESKey
|
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 |
setProviderSecret(String providerSecret)
Sets provider secret.
|
void |
setSuiteAccessToken(String suiteAccessToken)
Sets suite access token.
|
void |
setSuiteAccessTokenExpiresTime(long suiteAccessTokenExpiresTime)
已过时。
|
void |
setSuiteId(String suiteId)
Sets suite id.
|
void |
setSuiteSecret(String corpSecret)
Sets suite secret.
|
void |
setSuiteTicket(String suiteTicket)
已过时。
|
void |
setSuiteTicketExpiresTime(long suiteTicketExpiresTime)
已过时。
|
void |
setTmpDirFile(File tmpDirFile)
Sets tmp dir file.
|
void |
setToken(String token)
Sets 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.
|
protected volatile String corpId
protected volatile String providerSecret
protected volatile String suiteId
protected volatile String suiteSecret
protected volatile String token
protected volatile String encodingAESKey
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 在接口中 WxCpTpConfigStoragepublic void setSuiteId(String suiteId)
suiteId - public String getSuiteSecret()
WxCpTpConfigStoragegetSuiteSecret 在接口中 WxCpTpConfigStoragepublic void setSuiteSecret(String corpSecret)
public String getToken()
WxCpTpConfigStoragegetToken 在接口中 WxCpTpConfigStoragepublic void setToken(String token)
token - the tokenpublic String getEncodingAESKey()
WxCpTpConfigStoragegetEncodingAESKey 在接口中 WxCpTpConfigStoragepublic void setEncodingAESKey(String encodingAESKey)
encodingAESKey - the aes keypublic String getCorpId()
WxCpTpConfigStoragegetCorpId 在接口中 WxCpTpConfigStoragepublic void setCorpId(String corpId)
corpId - the corp idpublic String getCorpSecret()
WxCpTpConfigStoragegetCorpSecret 在接口中 WxCpTpConfigStoragepublic void setProviderSecret(String providerSecret)
WxCpTpConfigStoragesetProviderSecret 在接口中 WxCpTpConfigStorageproviderSecret - the provider 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 © 2026. All rights reserved.