public final class ThirdPartyLoginHelper extends Object
| 构造器和说明 |
|---|
ThirdPartyLoginHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
getQQTokenAndOpenid(String code,
String host)
获取QQ的认证token和用户OpenID
|
static ThirdPartyUser |
getQQUserinfo(String token,
String openid)
获取QQ用户信息
|
static com.alibaba.fastjson.JSONObject |
getSinaTokenAndUid(String code,
String host)
获取新浪登录认证token和用户id
|
static ThirdPartyUser |
getSinaUserinfo(String token,
String uid)
获取新浪用户信息
|
static Map<String,String> |
getWxTokenAndOpenid(String code,
String host)
获取微信的认证token和用户OpenID
|
static ThirdPartyUser |
getWxUserinfo(String token,
String openid)
获取微信用户信息
|
public static final ThirdPartyUser getQQUserinfo(String token, String openid) throws Exception
token - openid - Exceptionpublic static final ThirdPartyUser getWxUserinfo(String token, String openid) throws Exception
Exceptionpublic static final ThirdPartyUser getSinaUserinfo(String token, String uid) throws Exception
token - uid - Exceptionpublic static final Map<String,String> getQQTokenAndOpenid(String code, String host) throws Exception
code - host - Exceptionpublic static final Map<String,String> getWxTokenAndOpenid(String code, String host) throws Exception
code - host - ExceptionCopyright © 2017. All rights reserved.