public class TicketManager extends Object
Description:
| 构造器和说明 |
|---|
TicketManager(String thirdId,
String thirdSecret,
AbstractCacheStorager<Token> cacheStorager) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cachingTicket(String ticket)
缓存ticket
|
String |
getAccessTicket()
获取ticket
|
String |
getCacheKey()
获取ticket的key
|
AbstractCacheStorager<Token> |
getCacheStorager() |
String |
getThirdId() |
String |
getThirdSecret() |
Token |
getTicket()
获取ticket对象
|
public TicketManager(String thirdId, String thirdSecret, AbstractCacheStorager<Token> cacheStorager)
thirdId - 第三方ID suiteId/componentIdthirdSecret - 第三方secretcacheStorager - ticket存储策略public Token getTicket() throws WeixinException
WeixinExceptionpublic String getAccessTicket() throws WeixinException
WeixinExceptionpublic String getCacheKey()
public void cachingTicket(String ticket) throws WeixinException
ticket - 票据凭证WeixinExceptionpublic String getThirdId()
public String getThirdSecret()
public AbstractCacheStorager<Token> getCacheStorager()
Copyright © 2019. All rights reserved.