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 在接口中 WxOAuth2Servicepublic WxOAuth2AccessToken getAccessToken(String code) throws WxErrorException
getAccessToken 在接口中 WxOAuth2ServiceWxErrorExceptionpublic WxOAuth2AccessToken getAccessToken(String appId, String appSecret, String code) throws WxErrorException
getAccessToken 在接口中 WxOAuth2ServiceWxErrorExceptionpublic WxOAuth2AccessToken refreshAccessToken(String refreshToken) throws WxErrorException
refreshAccessToken 在接口中 WxOAuth2ServiceWxErrorExceptionprotected WxMpConfigStorage getMpConfigStorage()
public WxOAuth2UserInfo getUserInfo(WxOAuth2AccessToken token, String lang) throws WxErrorException
getUserInfo 在接口中 WxOAuth2ServiceWxErrorExceptionpublic boolean validateAccessToken(WxOAuth2AccessToken token)
validateAccessToken 在接口中 WxOAuth2ServiceCopyright © 2025. All rights reserved.