All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.quhaodian.user.oauth.api.OauthHandler Maven / Gradle / Ivy

There is a newer version: 1.8.31
Show newest version
package com.quhaodian.user.oauth.api;

import com.quhaodian.user.oauth.domain.OauthResponse;
import com.quhaodian.user.oauth.domain.TokenResponse;

/**
 * oauth登陆处理类
 * 

* Created by ada on 2017/7/20. */ public interface OauthHandler { void setKey(String key); void setSecret(String secret); /** * 通过token获取用户资料 * * @param access_token * @param openid * @return */ OauthResponse login(String access_token, String openid); /** * 通过code换取令牌 * * @param code * @return */ TokenResponse getToken(String code); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy