{"size": 407, "ext": "js", "max_stars_repo_path": "lib/security/BasicAuthSecurity.js", "max_stars_repo_name": "coretech/node-soap", "max_stars_repo_stars_event_min_datetime": "2015-12-24T10:14:34.000Z", "max_stars_repo_stars_event_max_datetime": "2015-12-24T10:14:34.000Z", "max_issues_repo_path": "lib/security/BasicAuthSecurity.js", "max_issues_repo_name": "harishkswamy/node-soap-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/security/BasicAuthSecurity.js", "max_forks_repo_name": "harishkswamy/node-soap-api", "max_forks_repo_forks_event_min_datetime": "2016-03-08T08:06:31.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-25T04:40:06.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 23.9411764706, "max_line_length": 114, "alphanum_fraction": 0.7174447174}

"use strict";

function BasicAuthSecurity(username, password) {
  this._username = username;
  this._password = password;
}

BasicAuthSecurity.prototype.addHeaders = function(headers) {
  headers.Authorization = "Basic " + new Buffer((this._username + ':' + this._password) || '').toString('base64');
};

BasicAuthSecurity.prototype.toXML = function() {
  return "";
};

module.exports = BasicAuthSecurity;