public class WxCpTpDefaultConfigImpl extends java.lang.Object implements WxCpTpConfigStorage, java.io.Serializable
构造器和说明 |
---|
WxCpTpDefaultConfigImpl() |
限定符和类型 | 方法和说明 |
---|---|
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相关
|
long |
getSuiteTicketExpiresTime()
已过时。
|
java.io.File |
getTmpDirFile()
Gets tmp dir file.
|
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 |
setAesKey(java.lang.String aesKey)
已过时。
|
void |
setApacheHttpClientBuilder(me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder apacheHttpClientBuilder)
Sets apache http client builder.
|
void |
setBaseApiUrl(java.lang.String baseUrl)
设置企业微信服务器 baseUrl.
|
void |
setCorpId(java.lang.String corpId)
已过时。
|
void |
setCorpSecret(java.lang.String corpSecret)
已过时。
|
void |
setHttpProxyHost(java.lang.String httpProxyHost)
Sets http proxy host.
|
void |
setHttpProxyPassword(java.lang.String httpProxyPassword)
Sets http proxy password.
|
void |
setHttpProxyPort(int httpProxyPort)
Sets http proxy port.
|
void |
setHttpProxyUsername(java.lang.String httpProxyUsername)
Sets http proxy username.
|
void |
setOauth2redirectUri(java.lang.String oauth2redirectUri)
Sets oauth 2 redirect uri.
|
void |
setSuiteAccessToken(java.lang.String suiteAccessToken)
Sets suite access token.
|
void |
setSuiteAccessTokenExpiresTime(long suiteAccessTokenExpiresTime)
已过时。
|
void |
setSuiteId(java.lang.String corpId)
已过时。
|
void |
setSuiteSecret(java.lang.String corpSecret)
已过时。
|
void |
setSuiteTicket(java.lang.String suiteTicket)
已过时。
|
void |
setSuiteTicketExpiresTime(long suiteTicketExpiresTime)
已过时。
|
void |
setTmpDirFile(java.io.File tmpDirFile)
Sets tmp dir file.
|
void |
setToken(java.lang.String token)
已过时。
|
java.lang.String |
toString() |
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.
|
public void setBaseApiUrl(java.lang.String baseUrl)
WxCpTpConfigStorage
setBaseApiUrl
在接口中 WxCpTpConfigStorage
baseUrl
- 企业微信服务器 Urlpublic java.lang.String getApiUrl(java.lang.String path)
WxCpTpConfigStorage
getApiUrl
在接口中 WxCpTpConfigStorage
path
- the pathpublic java.lang.String getSuiteAccessToken()
WxCpTpConfigStorage
getSuiteAccessToken
在接口中 WxCpTpConfigStorage
public void setSuiteAccessToken(java.lang.String suiteAccessToken)
suiteAccessToken
- the suite access tokenpublic me.chanjar.weixin.common.bean.WxAccessToken getSuiteAccessTokenEntity()
WxCpTpConfigStorage
getSuiteAccessTokenEntity
在接口中 WxCpTpConfigStorage
public boolean isSuiteAccessTokenExpired()
WxCpTpConfigStorage
isSuiteAccessTokenExpired
在接口中 WxCpTpConfigStorage
public void expireSuiteAccessToken()
WxCpTpConfigStorage
expireSuiteAccessToken
在接口中 WxCpTpConfigStorage
public void updateSuiteAccessToken(me.chanjar.weixin.common.bean.WxAccessToken suiteAccessToken)
WxCpTpConfigStorage
updateSuiteAccessToken
在接口中 WxCpTpConfigStorage
suiteAccessToken
- the suite access tokenpublic void updateSuiteAccessToken(java.lang.String suiteAccessToken, int expiresInSeconds)
WxCpTpConfigStorage
updateSuiteAccessToken
在接口中 WxCpTpConfigStorage
suiteAccessToken
- the suite access tokenexpiresInSeconds
- the expires in seconds@Deprecated public void setSuiteAccessTokenExpiresTime(long suiteAccessTokenExpiresTime)
suiteAccessTokenExpiresTime
- the suite access token expires timepublic java.lang.String getSuiteTicket()
WxCpTpConfigStorage
getSuiteTicket
在接口中 WxCpTpConfigStorage
@Deprecated public void setSuiteTicket(java.lang.String suiteTicket)
suiteTicket
- the suite ticketpublic boolean isSuiteTicketExpired()
WxCpTpConfigStorage
isSuiteTicketExpired
在接口中 WxCpTpConfigStorage
public void expireSuiteTicket()
WxCpTpConfigStorage
expireSuiteTicket
在接口中 WxCpTpConfigStorage
public void updateSuiteTicket(java.lang.String suiteTicket, int expiresInSeconds)
WxCpTpConfigStorage
updateSuiteTicket
在接口中 WxCpTpConfigStorage
suiteTicket
- the suite ticketexpiresInSeconds
- the expires in seconds@Deprecated public long getSuiteTicketExpiresTime()
@Deprecated public void setSuiteTicketExpiresTime(long suiteTicketExpiresTime)
suiteTicketExpiresTime
- the suite ticket expires timepublic java.lang.String getSuiteId()
WxCpTpConfigStorage
getSuiteId
在接口中 WxCpTpConfigStorage
@Deprecated public void setSuiteId(java.lang.String corpId)
corpId
- the corp idpublic java.lang.String getSuiteSecret()
WxCpTpConfigStorage
getSuiteSecret
在接口中 WxCpTpConfigStorage
@Deprecated public void setSuiteSecret(java.lang.String corpSecret)
corpSecret
- the corp secretpublic java.lang.String getToken()
WxCpTpConfigStorage
getToken
在接口中 WxCpTpConfigStorage
@Deprecated public void setToken(java.lang.String token)
token
- the tokenpublic java.lang.String getAesKey()
WxCpTpConfigStorage
getAesKey
在接口中 WxCpTpConfigStorage
@Deprecated public void setAesKey(java.lang.String aesKey)
aesKey
- the aes keypublic java.lang.String getCorpId()
WxCpTpConfigStorage
getCorpId
在接口中 WxCpTpConfigStorage
@Deprecated public void setCorpId(java.lang.String corpId)
corpId
- the corp idpublic java.lang.String getCorpSecret()
WxCpTpConfigStorage
getCorpSecret
在接口中 WxCpTpConfigStorage
@Deprecated public void setCorpSecret(java.lang.String corpSecret)
corpSecret
- the corp secretpublic java.lang.String getProviderSecret()
WxCpTpConfigStorage
getProviderSecret
在接口中 WxCpTpConfigStorage
public java.lang.String getAccessToken(java.lang.String authCorpId)
WxCpTpConfigStorage
getAccessToken
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic me.chanjar.weixin.common.bean.WxAccessToken getAccessTokenEntity(java.lang.String authCorpId)
WxCpTpConfigStorage
getAccessTokenEntity
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic boolean isAccessTokenExpired(java.lang.String authCorpId)
WxCpTpConfigStorage
isAccessTokenExpired
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic void expireAccessToken(java.lang.String authCorpId)
WxCpTpConfigStorage
expireAccessToken
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic void updateAccessToken(java.lang.String authCorpId, java.lang.String accessToken, int expiredInSeconds)
WxCpTpConfigStorage
updateAccessToken
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idaccessToken
- the access tokenexpiredInSeconds
- the expired in secondspublic java.lang.String getAuthCorpJsApiTicket(java.lang.String authCorpId)
WxCpTpConfigStorage
getAuthCorpJsApiTicket
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic boolean isAuthCorpJsApiTicketExpired(java.lang.String authCorpId)
WxCpTpConfigStorage
isAuthCorpJsApiTicketExpired
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic void expireAuthCorpJsApiTicket(java.lang.String authCorpId)
WxCpTpConfigStorage
expireAuthCorpJsApiTicket
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic void updateAuthCorpJsApiTicket(java.lang.String authCorpId, java.lang.String jsApiTicket, int expiredInSeconds)
WxCpTpConfigStorage
updateAuthCorpJsApiTicket
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idjsApiTicket
- the js api ticketexpiredInSeconds
- the expired in secondspublic java.lang.String getAuthSuiteJsApiTicket(java.lang.String authCorpId)
WxCpTpConfigStorage
getAuthSuiteJsApiTicket
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic boolean isAuthSuiteJsApiTicketExpired(java.lang.String authCorpId)
WxCpTpConfigStorage
isAuthSuiteJsApiTicketExpired
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic void expireAuthSuiteJsApiTicket(java.lang.String authCorpId)
WxCpTpConfigStorage
expireAuthSuiteJsApiTicket
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic void updateAuthSuiteJsApiTicket(java.lang.String authCorpId, java.lang.String jsApiTicket, int expiredInSeconds)
WxCpTpConfigStorage
updateAuthSuiteJsApiTicket
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idjsApiTicket
- the js api ticketexpiredInSeconds
- the expired in secondspublic boolean isProviderTokenExpired()
WxCpTpConfigStorage
isProviderTokenExpired
在接口中 WxCpTpConfigStorage
public void updateProviderToken(java.lang.String providerToken, int expiredInSeconds)
WxCpTpConfigStorage
updateProviderToken
在接口中 WxCpTpConfigStorage
providerToken
- the provider tokenexpiredInSeconds
- the expired in secondspublic java.lang.String getProviderToken()
WxCpTpConfigStorage
getProviderToken
在接口中 WxCpTpConfigStorage
public WxCpProviderToken getProviderTokenEntity()
WxCpTpConfigStorage
getProviderTokenEntity
在接口中 WxCpTpConfigStorage
public void expireProviderToken()
WxCpTpConfigStorage
expireProviderToken
在接口中 WxCpTpConfigStorage
public void setOauth2redirectUri(java.lang.String oauth2redirectUri)
oauth2redirectUri
- the oauth 2 redirect uripublic java.lang.String getHttpProxyHost()
WxCpTpConfigStorage
getHttpProxyHost
在接口中 WxCpTpConfigStorage
public void setHttpProxyHost(java.lang.String httpProxyHost)
httpProxyHost
- the http proxy hostpublic int getHttpProxyPort()
WxCpTpConfigStorage
getHttpProxyPort
在接口中 WxCpTpConfigStorage
public void setHttpProxyPort(int httpProxyPort)
httpProxyPort
- the http proxy portpublic java.lang.String getHttpProxyUsername()
WxCpTpConfigStorage
getHttpProxyUsername
在接口中 WxCpTpConfigStorage
public void setHttpProxyUsername(java.lang.String httpProxyUsername)
httpProxyUsername
- the http proxy usernamepublic java.lang.String getHttpProxyPassword()
WxCpTpConfigStorage
getHttpProxyPassword
在接口中 WxCpTpConfigStorage
public void setHttpProxyPassword(java.lang.String httpProxyPassword)
httpProxyPassword
- the http proxy passwordpublic java.lang.String toString()
toString
在类中 java.lang.Object
public java.io.File getTmpDirFile()
WxCpTpConfigStorage
getTmpDirFile
在接口中 WxCpTpConfigStorage
public void setTmpDirFile(java.io.File tmpDirFile)
tmpDirFile
- the tmp dir filepublic java.util.concurrent.locks.Lock getProviderAccessTokenLock()
WxCpTpConfigStorage
getProviderAccessTokenLock
在接口中 WxCpTpConfigStorage
public java.util.concurrent.locks.Lock getSuiteAccessTokenLock()
WxCpTpConfigStorage
getSuiteAccessTokenLock
在接口中 WxCpTpConfigStorage
public java.util.concurrent.locks.Lock getAccessTokenLock(java.lang.String authCorpId)
WxCpTpConfigStorage
getAccessTokenLock
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic java.util.concurrent.locks.Lock getAuthCorpJsapiTicketLock(java.lang.String authCorpId)
WxCpTpConfigStorage
getAuthCorpJsapiTicketLock
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic java.util.concurrent.locks.Lock getSuiteJsapiTicketLock(java.lang.String authCorpId)
WxCpTpConfigStorage
getSuiteJsapiTicketLock
在接口中 WxCpTpConfigStorage
authCorpId
- the auth corp idpublic me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder getApacheHttpClientBuilder()
WxCpTpConfigStorage
getApacheHttpClientBuilder
在接口中 WxCpTpConfigStorage
public void setApacheHttpClientBuilder(me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder apacheHttpClientBuilder)
apacheHttpClientBuilder
- the apache http client builderpublic boolean autoRefreshToken()
WxCpTpConfigStorage
autoRefreshToken
在接口中 WxCpTpConfigStorage