• File: NTLMSecurity.js
  • Full Path: /var/www/nodejs/callDir/node_modules/soap/lib/security/NTLMSecurity.js
  • Date Modified: 06/03/2024 5:11 PM
  • File size: 864 bytes
  • MIME-type: text/plain
  • Charset: utf-8
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NTLMSecurity = void 0;
const _ = require("lodash");
class NTLMSecurity {
    constructor(username, password, domain, workstation) {
        if (typeof username === 'object') {
            this.defaults = username;
            this.defaults.ntlm = true;
        }
        else {
            this.defaults = {
                ntlm: true,
                username: username,
                password: password,
                domain: domain,
                workstation: workstation,
            };
        }
    }
    addHeaders(headers) {
        headers.Connection = 'keep-alive';
    }
    toXML() {
        return '';
    }
    addOptions(options) {
        _.merge(options, this.defaults);
    }
}
exports.NTLMSecurity = NTLMSecurity;
//# sourceMappingURL=NTLMSecurity.js.map