Class HttpBearerAuth

  • All Implemented Interfaces:
    com.redhat.threescale.rest.cms.auth.Authentication

    @Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") 
    public class HttpBearerAuth
     implements Authentication
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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 applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams) Apply authentication settings to header and query params.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 parameters
        headerParams - Map of header parameters
        cookieParams - Map of cookie parameters