接口 OauthGateway

所有超级接口:
Container<String>
所有已知实现类:
AbstractOauth, QQOauthComponent, WechatOauthComponent, WeiboOauthComponent

public interface OauthGateway extends Container<String>
OauthGateway
  • 方法详细资料

    • getChannel

      String getChannel()
      返回:
      channel
    • keyFunction

      default Supplier<String> keyFunction()
      指定者:
      keyFunction 在接口中 Container<String>
    • enabled

      boolean enabled(short siteId)
      参数:
      siteId -
      返回:
      enabled
    • getAuthorizeUrl

      String getAuthorizeUrl(short siteId, String state, boolean mobilde)
      参数:
      siteId -
      state -
      mobilde -
      返回:
      authorize url
    • getAuthorizeUrl

      String getAuthorizeUrl(short siteId, String state)
      参数:
      siteId -
      state -
      返回:
      authorize url
    • getOpenId

      OauthAccess getOpenId(short siteId, String code) throws IOException
      参数:
      siteId -
      code -
      返回:
      oauth access
      抛出:
      org.apache.http.client.ClientProtocolException
      IOException
    • getOpenId

      default OauthAccess getOpenId(short siteId, OauthAccess oauthInfo) throws IOException
      参数:
      siteId -
      oauthInfo -
      返回:
      抛出:
      IOException
    • getUserInfo

      OauthUser getUserInfo(short siteId, OauthAccess oauthAccess) throws IOException
      参数:
      siteId -
      oauthAccess -
      返回:
      user info
      抛出:
      org.apache.http.client.ClientProtocolException
      IOException