类 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapplyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) Apply authentication settings to header and query params.Gets the token, which together with the scheme, will be sent as the value of the Authorization header.voidsetBearerToken(String bearerToken) Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
-
构造器详细资料
-
HttpBearerAuth
-
-
方法详细资料
-
getBearerToken
Gets the token, which together with the scheme, will be sent as the value of the Authorization header.- 返回:
- The bearer token
-
setBearerToken
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, throws ApiExceptionString> cookieParams, String payload, String method, URI uri) 从接口复制的说明:AuthenticationApply authentication settings to header and query params.- 指定者:
applyToParams在接口中Authentication- 参数:
queryParams- List of query parametersheaderParams- Map of header parameterscookieParams- Map of cookie parameterspayload- HTTP request bodymethod- HTTP methoduri- URI- 抛出:
ApiException- if failed to update the parameters
-