@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
34 lines • 1.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeyPair = void 0;
const index_1 = require("./../index");
class KeyPair {
constructor(data) {
this.certificate = index_1.CertificateFileData.fromJson(data.certificate);
this.privateKey = index_1.PrivateKeyFileData.fromJson(data.privateKey);
}
static getCertificateDescription() {
return "";
}
static getPrivateKeyDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new KeyPair(data);
}
toJson() {
var _a, _b;
return {
'certificate': (_a = this.certificate) === null || _a === void 0 ? void 0 : _a.toJson(),
'privateKey': (_b = this.privateKey) === null || _b === void 0 ? void 0 : _b.toJson(),
};
}
clone() {
return KeyPair.fromJson(this.toJson());
}
}
exports.KeyPair = KeyPair;
//# sourceMappingURL=KeyPair.js.map