public class WxMpOAuth2ServiceImpl extends Object implements WxOAuth2Service
构造器和说明 |
---|
WxMpOAuth2ServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
String |
buildAuthorizationUrl(String redirectUri,
String scope,
String state) |
WxOAuth2AccessToken |
getAccessToken(String code) |
WxOAuth2AccessToken |
getAccessToken(String appId,
String appSecret,
String code) |
protected WxMpConfigStorage |
getMpConfigStorage() |
WxOAuth2UserInfo |
getUserInfo(WxOAuth2AccessToken token,
String lang) |
WxOAuth2AccessToken |
refreshAccessToken(String refreshToken) |
boolean |
validateAccessToken(WxOAuth2AccessToken token) |
public String buildAuthorizationUrl(String redirectUri, String scope, String state)
buildAuthorizationUrl
在接口中 WxOAuth2Service
public WxOAuth2AccessToken getAccessToken(String code) throws WxErrorException
getAccessToken
在接口中 WxOAuth2Service
WxErrorException
public WxOAuth2AccessToken getAccessToken(String appId, String appSecret, String code) throws WxErrorException
getAccessToken
在接口中 WxOAuth2Service
WxErrorException
public WxOAuth2AccessToken refreshAccessToken(String refreshToken) throws WxErrorException
refreshAccessToken
在接口中 WxOAuth2Service
WxErrorException
protected WxMpConfigStorage getMpConfigStorage()
public WxOAuth2UserInfo getUserInfo(WxOAuth2AccessToken token, String lang) throws WxErrorException
getUserInfo
在接口中 WxOAuth2Service
WxErrorException
public boolean validateAccessToken(WxOAuth2AccessToken token)
validateAccessToken
在接口中 WxOAuth2Service
Copyright © 2024. All rights reserved.