weixin.popular.support.ComponentTokenManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weixin-popular Show documentation
Show all versions of weixin-popular Show documentation
The weixin-popular is a JAVA SDK for weixin. Weixin web url is https://mp.weixin.qq.com.
package weixin.popular.support;
import weixin.popular.bean.component.ApiQueryAuthResult;
/**
* ComponentTokenManager 第三方平台token 管理
*
* @author LiYi
* @since 2.8.20
*/
public interface ComponentTokenManager {
/**
* 获取 component_access_token
*
* @param component_appid component_appid
* @return componentAccessToken
*/
String getComponentAccessToken(String component_appid);
/**
* 获取 component_access_token
* 适用于单一第三方平台环境
*
* @return componentAccessToken
*/
String getComponentAccessToken();
/**
* 获取 authorizer_access_token
*
* @param component_appid component_appid
* @param authorizer_appid authorizer_appid
* @return authorizerAccessToken
*/
String getAuthorizerAccessToken(String component_appid, String authorizer_appid);
/**
* 获取 authorizer_access_token
* 适用于单一第三方平台环境
*
* @param authorizer_appid authorizer_appid
* @return authorizerAccessToken
*/
String getAuthorizerAccessToken(String authorizer_appid);
/**
* 刷新 component_access_token
*
* @param component_appid component_appid
* @param component_appsecret component_appsecret
* @param component_verify_ticket component_verify_ticket
*/
void component_verify_ticket(String component_appid, String component_appsecret, String component_verify_ticket);
/**
* 授权事件
*
* @param component_appid component_appid
* @param authorizationCode authorizationCode
* @return ApiQueryAuthResult
*/
ApiQueryAuthResult authorized(String component_appid, String authorizationCode);
/**
* 取消授权事件
*
* @param component_appid component_appid
* @param authorizer_appid authorizer_appid
*/
void unauthorized(String component_appid, String authorizer_appid);
}