Class HttpBearerAuth
-
- All Implemented Interfaces:
-
com.redhat.threescale.rest.cms.auth.Authentication
@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class HttpBearerAuth implements Authentication
-
-
Field Summary
Fields Modifier and Type Field Description public StringbearerToken
-
Constructor Summary
Constructors Constructor Description HttpBearerAuth(String scheme)
-
Method Summary
Modifier and Type Method Description 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. voidapplyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams)Apply authentication settings to header and query params. -
-
Constructor Detail
-
HttpBearerAuth
HttpBearerAuth(String scheme)
-
-
Method Detail
-
getBearerToken
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
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
void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams)
Apply authentication settings to header and query params.
- Parameters:
queryParams- List of query parametersheaderParams- Map of header parameterscookieParams- Map of cookie parameters
-
-
-
-