类 HttpBearerAuth
- java.lang.Object
-
- com.alibaba.graphscope.interactive.openapi.auth.HttpBearerAuth
-
- 所有已实现的接口:
Authentication
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.0") public class HttpBearerAuth extends Object implements Authentication
-
-
构造器概要
构造器 构造器 说明 HttpBearerAuth(String scheme)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.StringgetBearerToken()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.voidsetBearerToken(Supplier<String> tokenSupplier)Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header.
-
-
-
构造器详细资料
-
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
-
setBearerToken
public void setBearerToken(Supplier<String> tokenSupplier)
Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header.- 参数:
tokenSupplier- The supplier of bearer tokens 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
从接口复制的说明: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
-
-