Class WeixinProviderTokenCreator

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

    public class WeixinProviderTokenCreator
    extends com.foxinmy.weixin4j.token.TokenCreator
    微信企业号应用提供商凭证创建
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    See Also:
    服务商的凭证, Token
    • Constructor Detail

      • WeixinProviderTokenCreator

        public WeixinProviderTokenCreator​(String corpid,
                                          String providersecret)
        Parameters:
        corpid - 企业号ID
        providersecret - 企业号提供商的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