Class WeixinTokenCreator

  • All Implemented Interfaces:
    com.foxinmy.weixin4j.cache.CacheCreator<com.foxinmy.weixin4j.model.Token>

    public class WeixinTokenCreator
    extends com.foxinmy.weixin4j.token.TokenCreator
    微信公众平台TOKEN创建者
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    See Also:
    微信公众平台获取token说明, Token
    • Constructor Detail

      • WeixinTokenCreator

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

      • name

        public String name()
        Specified by:
        name in class com.foxinmy.weixin4j.token.TokenCreator
      • uniqueid

        public String uniqueid()
        Specified by:
        uniqueid in class com.foxinmy.weixin4j.token.TokenCreator
      • create

        public com.foxinmy.weixin4j.model.Token create()
                                                throws com.foxinmy.weixin4j.exception.WeixinException
        Throws:
        com.foxinmy.weixin4j.exception.WeixinException