public interface WxCpConfigStorage
限定符和类型 | 方法和说明 |
---|---|
boolean |
autoRefreshToken()
是否自动刷新token
|
void |
expireAccessToken()
强制将access token过期掉.
|
void |
expireAgentJsapiTicket()
强制将jsapi ticket过期掉.
|
void |
expireJsapiTicket()
强制将jsapi ticket过期掉.
|
java.lang.String |
getAccessToken()
Gets access token.
|
java.util.concurrent.locks.Lock |
getAccessTokenLock()
Gets access token lock.
|
java.lang.String |
getAesKey()
Gets aes key.
|
java.lang.Integer |
getAgentId()
Gets agent id.
|
java.lang.String |
getAgentJsapiTicket()
Gets agent jsapi ticket.
|
java.util.concurrent.locks.Lock |
getAgentJsapiTicketLock()
Gets agent jsapi ticket lock.
|
me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder |
getApacheHttpClientBuilder()
http client builder.
|
java.lang.String |
getApiUrl(java.lang.String path)
读取企业微信 API Url.
|
java.lang.String |
getCorpId()
Gets corp id.
|
java.lang.String |
getCorpSecret()
Gets corp secret.
|
long |
getExpiresTime()
Gets expires time.
|
java.lang.String |
getHttpProxyHost()
Gets http proxy host.
|
java.lang.String |
getHttpProxyPassword()
Gets http proxy password.
|
int |
getHttpProxyPort()
Gets http proxy port.
|
java.lang.String |
getHttpProxyUsername()
Gets http proxy username.
|
java.lang.String |
getJsapiTicket()
Gets jsapi ticket.
|
java.util.concurrent.locks.Lock |
getJsapiTicketLock()
Gets jsapi ticket lock.
|
java.lang.String |
getMsgAuditLibPath()
获取企微会话存档系统库 绝对路径
|
java.lang.String |
getOauth2redirectUri()
Gets oauth 2 redirect uri.
|
java.io.File |
getTmpDirFile()
Gets tmp dir file.
|
java.lang.String |
getToken()
Gets token.
|
java.lang.String |
getWebhookKey()
获取群机器人webhook的key
|
boolean |
isAccessTokenExpired()
Is access token expired boolean.
|
boolean |
isAgentJsapiTicketExpired()
Is agent jsapi ticket expired boolean.
|
boolean |
isJsapiTicketExpired()
Is jsapi ticket expired boolean.
|
void |
setBaseApiUrl(java.lang.String baseUrl)
设置企业微信服务器 baseUrl.
|
void |
updateAccessToken(java.lang.String accessToken,
int expiresIn)
Update access token.
|
void |
updateAccessToken(me.chanjar.weixin.common.bean.WxAccessToken accessToken)
Update access token.
|
void |
updateAgentJsapiTicket(java.lang.String jsapiTicket,
int expiresInSeconds)
应该是线程安全的.
|
void |
updateJsapiTicket(java.lang.String jsapiTicket,
int expiresInSeconds)
应该是线程安全的.
|
void setBaseApiUrl(java.lang.String baseUrl)
baseUrl
- 企业微信服务器 Urljava.lang.String getApiUrl(java.lang.String path)
path
- the pathjava.lang.String getAccessToken()
java.util.concurrent.locks.Lock getAccessTokenLock()
boolean isAccessTokenExpired()
void expireAccessToken()
void updateAccessToken(me.chanjar.weixin.common.bean.WxAccessToken accessToken)
accessToken
- the access tokenvoid updateAccessToken(java.lang.String accessToken, int expiresIn)
accessToken
- the access tokenexpiresIn
- the expires injava.lang.String getJsapiTicket()
java.util.concurrent.locks.Lock getJsapiTicketLock()
boolean isJsapiTicketExpired()
void expireJsapiTicket()
void updateJsapiTicket(java.lang.String jsapiTicket, int expiresInSeconds)
jsapiTicket
- the jsapi ticketexpiresInSeconds
- the expires in secondsjava.lang.String getAgentJsapiTicket()
java.util.concurrent.locks.Lock getAgentJsapiTicketLock()
boolean isAgentJsapiTicketExpired()
void expireAgentJsapiTicket()
void updateAgentJsapiTicket(java.lang.String jsapiTicket, int expiresInSeconds)
jsapiTicket
- the jsapi ticketexpiresInSeconds
- the expires in secondsjava.lang.String getCorpId()
java.lang.String getCorpSecret()
java.lang.Integer getAgentId()
java.lang.String getToken()
java.lang.String getAesKey()
java.lang.String getMsgAuditLibPath()
long getExpiresTime()
java.lang.String getOauth2redirectUri()
java.lang.String getHttpProxyHost()
int getHttpProxyPort()
java.lang.String getHttpProxyUsername()
java.lang.String getHttpProxyPassword()
java.io.File getTmpDirFile()
me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder getApacheHttpClientBuilder()
boolean autoRefreshToken()
java.lang.String getWebhookKey()