Class WeixinTokenComponentCreator

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

    public class WeixinTokenComponentCreator
    extends com.foxinmy.weixin4j.token.TokenCreator
    微信公众号token创建(永久刷新令牌)
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    • Constructor Detail

      • WeixinTokenComponentCreator

        public WeixinTokenComponentCreator​(com.foxinmy.weixin4j.token.PerTicketManager perTicketManager,
                                           com.foxinmy.weixin4j.token.TokenManager componentTokenManager)
        Parameters:
        perTicketManager - 第三方套件永久授权码
        componentTokenManager - 第三方套件凭证token
    • 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