public class WxCpTpRedissonConfigImpl extends java.lang.Object implements WxCpTpConfigStorage, java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
protected static java.lang.String |
LOCK_KEY
The constant LOCK_KEY.
|
protected static java.lang.String |
LOCKER_ACCESS_TOKEN
The constant LOCKER_ACCESS_TOKEN.
|
protected static java.lang.String |
LOCKER_CORP_JSAPI_TICKET
The constant LOCKER_CORP_JSAPI_TICKET.
|
protected static java.lang.String |
LOCKER_PROVIDER_ACCESS_TOKEN
The constant LOCKER_PROVIDER_ACCESS_TOKEN.
|
protected static java.lang.String |
LOCKER_SUITE_ACCESS_TOKEN
The constant LOCKER_SUITE_ACCESS_TOKEN.
|
protected static java.lang.String |
LOCKER_SUITE_JSAPI_TICKET
The constant LOCKER_SUITE_JSAPI_TICKET.
|
构造器和说明 |
---|
WxCpTpRedissonConfigImpl() |
限定符和类型 | 方法和说明 |
---|---|
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()
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 |
setBaseApiUrl(java.lang.String baseUrl)
设置企业微信服务器 baseUrl.
|
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.
|
protected static final java.lang.String LOCK_KEY
protected static final java.lang.String LOCKER_PROVIDER_ACCESS_TOKEN
protected static final java.lang.String LOCKER_SUITE_ACCESS_TOKEN
protected static final java.lang.String LOCKER_ACCESS_TOKEN
protected static final java.lang.String LOCKER_CORP_JSAPI_TICKET
protected static final java.lang.String LOCKER_SUITE_JSAPI_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()
getSuiteAccessToken
在接口中 WxCpTpConfigStorage
public 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 secondspublic java.lang.String getSuiteTicket()
getSuiteTicket
在接口中 WxCpTpConfigStorage
public 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 secondspublic java.lang.String getSuiteId()
getSuiteId
在接口中 WxCpTpConfigStorage
public java.lang.String getSuiteSecret()
WxCpTpConfigStorage
getSuiteSecret
在接口中 WxCpTpConfigStorage
public java.lang.String getToken()
WxCpTpConfigStorage
getToken
在接口中 WxCpTpConfigStorage
public java.lang.String getAesKey()
WxCpTpConfigStorage
getAesKey
在接口中 WxCpTpConfigStorage
public java.lang.String getCorpId()
getCorpId
在接口中 WxCpTpConfigStorage
public java.lang.String getCorpSecret()
WxCpTpConfigStorage
getCorpSecret
在接口中 WxCpTpConfigStorage
public java.lang.String getProviderSecret()
WxCpTpConfigStorage
getProviderSecret
在接口中 WxCpTpConfigStorage
public java.lang.String getAccessToken(java.lang.String authCorpId)
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)
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)
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 java.lang.String getHttpProxyHost()
getHttpProxyHost
在接口中 WxCpTpConfigStorage
public int getHttpProxyPort()
WxCpTpConfigStorage
getHttpProxyPort
在接口中 WxCpTpConfigStorage
public java.lang.String getHttpProxyUsername()
WxCpTpConfigStorage
getHttpProxyUsername
在接口中 WxCpTpConfigStorage
public java.lang.String getHttpProxyPassword()
WxCpTpConfigStorage
getHttpProxyPassword
在接口中 WxCpTpConfigStorage
public java.io.File getTmpDirFile()
WxCpTpConfigStorage
getTmpDirFile
在接口中 WxCpTpConfigStorage
public 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 boolean autoRefreshToken()
WxCpTpConfigStorage
autoRefreshToken
在接口中 WxCpTpConfigStorage
public java.lang.String toString()
toString
在类中 java.lang.Object