Class OauthToken

  • All Implemented Interfaces:
    com.foxinmy.weixin4j.cache.Cacheable, Serializable

    public class OauthToken
    extends com.foxinmy.weixin4j.model.Token
    用户授权token 一般通过授权页面获得
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    See Also:
    Serialized Form
    • Constructor Detail

      • OauthToken

        public OauthToken​(String accessToken,
                          long expires)
    • Method Detail

      • getOpenId

        public String getOpenId()
      • setOpenId

        public void setOpenId​(String openId)
      • getUnionId

        public String getUnionId()
      • setUnionId

        public void setUnionId​(String unionId)
      • getRefreshToken

        public String getRefreshToken()
      • setRefreshToken

        public void setRefreshToken​(String refreshToken)
      • getScope

        public String getScope()
      • setScope

        public void setScope​(String scope)
      • toString

        public String toString()
        Overrides:
        toString in class com.foxinmy.weixin4j.model.Token