@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-12-11T00:56:28.222220Z[Etc/UTC]", comments="Generator version: 7.10.0") public class HttpBearerAuth extends Object implements Authentication
Constructor and Description |
---|
HttpBearerAuth(String scheme) |
Modifier and Type | Method and Description |
---|---|
void |
applyToParams(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.
|
String |
getBearerToken()
Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
void |
setBearerToken(String bearerToken)
Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
|
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.
|
public HttpBearerAuth(String scheme)
public String getBearerToken()
public void setBearerToken(String bearerToken)
bearerToken
- The bearer token to send in the Authorization headerpublic void setBearerToken(Supplier<String> tokenSupplier)
tokenSupplier
- The supplier of bearer tokens to send in the Authorization headerpublic void applyToParams(List<Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri) throws ApiException
Authentication
applyToParams
in interface Authentication
queryParams
- List of query parametersheaderParams
- Map of header parameterscookieParams
- Map of cookie parameterspayload
- HTTP request bodymethod
- HTTP methoduri
- URIApiException
- if failed to update the parametersCopyright © 2024. All rights reserved.