Class HttpBasicAuth

    • Constructor Detail

      • HttpBasicAuth

        public HttpBasicAuth()
    • Method Detail

      • getUsername

        public String getUsername()
      • setUsername

        public void setUsername​(String username)
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword​(String password)
      • applyToParams

        public void applyToParams​(List<com.stackrox.invoker.Pair> queryParams,
                                  Map<String,​String> headerParams,
                                  Map<String,​String> cookieParams,
                                  String payload,
                                  String method,
                                  URI uri)
                           throws com.stackrox.invoker.ApiException
        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
        payload - HTTP request body
        method - HTTP method
        uri - URI
        Throws:
        com.stackrox.invoker.ApiException - if failed to update the parameters