UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

40 lines 1.46 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpBasicAuth = void 0; class HttpBasicAuth { constructor(data) { let passwordDefault = ""; this.password = typeof (data === null || data === void 0 ? void 0 : data.password) !== "undefined" ? data === null || data === void 0 ? void 0 : data.password : passwordDefault; let userNameDefault = ""; this.userName = typeof (data === null || data === void 0 ? void 0 : data.userName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.userName : userNameDefault; } static getPasswordDefault() { return ""; } static getPasswordDescription() { return "Password if the URL requests an authentication of the \"Basic Authentication\" type."; } static getUserNameDefault() { return ""; } static getUserNameDescription() { return "Username if the URL requests an authentication of the \"Basic Authentication\" type."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new HttpBasicAuth(data); } toJson() { return { 'password': this.password, 'userName': this.userName, }; } clone() { return HttpBasicAuth.fromJson(this.toJson()); } } exports.HttpBasicAuth = HttpBasicAuth; //# sourceMappingURL=HttpBasicAuth.js.map