类 HttpBearerAuth

java.lang.Object
com.easemob.im.auth.HttpBearerAuth
所有已实现的接口:
Authentication

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-25T14:51:53.998371+08:00[Asia/Shanghai]") public class HttpBearerAuth extends Object implements Authentication
  • 构造器详细资料

    • HttpBearerAuth

      public HttpBearerAuth(String scheme)
  • 方法详细资料

    • getBearerToken

      public String getBearerToken()
      Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
      返回:
      The bearer token
    • setBearerToken

      public void setBearerToken(String bearerToken)
      Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
      参数:
      bearerToken - The bearer token to send in the Authorization header
    • applyToParams

      public void applyToParams(List<Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri) throws ApiException
      从接口复制的说明: Authentication
      Apply authentication settings to header and query params.
      指定者:
      applyToParams 在接口中 Authentication
      参数:
      queryParams - List of query parameters
      headerParams - Map of header parameters
      cookieParams - Map of cookie parameters
      payload - HTTP request body
      method - HTTP method
      uri - URI
      抛出:
      ApiException - if failed to update the parameters