Package com.foxinmy.weixin4j.mp.model
Class OauthToken
- java.lang.Object
-
- com.foxinmy.weixin4j.model.Token
-
- com.foxinmy.weixin4j.mp.model.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 Summary
Constructors Constructor Description OauthToken(String accessToken, long expires)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOpenId()
String
getRefreshToken()
String
getScope()
String
getUnionId()
void
setOpenId(String openId)
void
setRefreshToken(String refreshToken)
void
setScope(String scope)
void
setUnionId(String unionId)
String
toString()
-
-
-
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 classcom.foxinmy.weixin4j.model.Token
-
-