Package io.lakefs.clients.api.auth
Class HttpBearerAuth
- java.lang.Object
-
- io.lakefs.clients.api.auth.HttpBearerAuth
-
- All Implemented Interfaces:
Authentication
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class HttpBearerAuth extends Object implements Authentication
-
-
Constructor Summary
Constructors Constructor Description HttpBearerAuth(String scheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToParams(List<Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams)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.
-
-
-
Constructor Detail
-
HttpBearerAuth
public HttpBearerAuth(String scheme)
-
-
Method Detail
-
getBearerToken
public String getBearerToken()
Gets the token, which together with the scheme, will be sent as the value of the Authorization header.- Returns:
- 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.- Parameters:
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)
Description copied from interface:AuthenticationApply authentication settings to header and query params.- Specified by:
applyToParamsin interfaceAuthentication- Parameters:
queryParams- List of query parametersheaderParams- Map of header parameterscookieParams- Map of cookie parameters
-
-