Class HttpBearerAuth

  • All Implemented Interfaces:
    Authentication

    @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2021-03-03T15:07:47.764821Z[Etc/UTC]")
    public class HttpBearerAuth
    extends Object
    implements Authentication
    • Constructor Detail

      • HttpBearerAuth

        public HttpBearerAuth​(String scheme)
    • Method Detail

      • getBearerToken

        public 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

        public 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

        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 interface Authentication
        Parameters:
        queryParams - List of query parameters
        headerParams - Map of header parameters
        cookieParams - Map of cookie parameters