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:
Cacheable
,Serializable
public class OauthToken extends 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()
-
Methods inherited from class com.foxinmy.weixin4j.model.Token
getAccessToken, getCreateTime, getExpires, getExtra, pushExtra
-
-
-
-
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)
-
-