Class HttpBearerAuth
java.lang.Object
com.okta.sdk.resource.client.auth.HttpBearerAuth
- All Implemented Interfaces:
Authentication
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class HttpBearerAuth
extends Object
implements Authentication
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToParams
(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams) 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.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.
-
Constructor Details
-
HttpBearerAuth
-
-
Method Details
-
getBearerToken
Gets the token, which together with the scheme, will be sent as the value of the Authorization header.- Returns:
- The bearer token
-
setBearerToken
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
-
setBearerToken
Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header.- Parameters:
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) Description copied from interface:Authentication
Apply authentication settings to header and query params.- Specified by:
applyToParams
in interfaceAuthentication
- Parameters:
queryParams
- List of query parametersheaderParams
- Map of header parameterscookieParams
- Map of cookie parameters
-