com.foxinmy.weixin4j.mp.token
Class WeixinTokenCreator

java.lang.Object
  extended by com.foxinmy.weixin4j.token.TokenCreator
      extended by com.foxinmy.weixin4j.mp.token.WeixinTokenCreator
All Implemented Interfaces:
CacheCreator<Token>

public class WeixinTokenCreator
extends TokenCreator

微信公众平台TOKEN创建者

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:
微信公众平台获取token说明, Token

Field Summary
 
Fields inherited from class com.foxinmy.weixin4j.token.TokenCreator
CACHEKEY_PREFIX
 
Constructor Summary
WeixinTokenCreator(String appid, String secret)
           
 
Method Summary
 Token create()
           
 String key0()
           
 
Methods inherited from class com.foxinmy.weixin4j.token.TokenCreator
key
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeixinTokenCreator

public WeixinTokenCreator(String appid,
                          String secret)
Parameters:
appid - 公众号ID
secret - 公众号secret
Method Detail

key0

public String key0()
Specified by:
key0 in class TokenCreator

create

public Token create()
             throws WeixinException
Throws:
WeixinException


Copyright © 2014–2017. All rights reserved.