Class HttpBearerAuth
java.lang.Object
net.finmath.smartbonds.pontes.client.auth.HttpBearerAuth
- All Implemented Interfaces:
Authentication
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class HttpBearerAuth
extends Object
implements Authentication
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToParams(org.springframework.util.MultiValueMap<String, String> queryParams, org.springframework.http.HttpHeaders headerParams, org.springframework.util.MultiValueMap<String, String> cookieParams) Apply authentication settings to header and / or query parameters.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.
-
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(org.springframework.util.MultiValueMap<String, String> queryParams, org.springframework.http.HttpHeaders headerParams, org.springframework.util.MultiValueMap<String, String> cookieParams) Description copied from interface:AuthenticationApply authentication settings to header and / or query parameters.- Specified by:
applyToParamsin interfaceAuthentication- Parameters:
queryParams- The query parameters for the requestheaderParams- The header parameters for the requestcookieParams- The cookie parameters for the request
-