@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
94 lines • 4.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetadataSignature = void 0;
class MetadataSignature {
constructor(data) {
let contactDefault = "";
this.contact = typeof (data === null || data === void 0 ? void 0 : data.contact) !== "undefined" ? data === null || data === void 0 ? void 0 : data.contact : contactDefault;
let dateDefault = "";
this.date = typeof (data === null || data === void 0 ? void 0 : data.date) !== "undefined" ? data === null || data === void 0 ? void 0 : data.date : dateDefault;
let filterDefault = "";
this.filter = typeof (data === null || data === void 0 ? void 0 : data.filter) !== "undefined" ? data === null || data === void 0 ? void 0 : data.filter : filterDefault;
let locationDefault = "";
this.location = typeof (data === null || data === void 0 ? void 0 : data.location) !== "undefined" ? data === null || data === void 0 ? void 0 : data.location : locationDefault;
let nameDefault = "";
this.name = typeof (data === null || data === void 0 ? void 0 : data.name) !== "undefined" ? data === null || data === void 0 ? void 0 : data.name : nameDefault;
let objectKeyDefault = "";
this.objectKey = typeof (data === null || data === void 0 ? void 0 : data.objectKey) !== "undefined" ? data === null || data === void 0 ? void 0 : data.objectKey : objectKeyDefault;
let reasonDefault = "";
this.reason = typeof (data === null || data === void 0 ? void 0 : data.reason) !== "undefined" ? data === null || data === void 0 ? void 0 : data.reason : reasonDefault;
let subFilterDefault = "";
this.subFilter = typeof (data === null || data === void 0 ? void 0 : data.subFilter) !== "undefined" ? data === null || data === void 0 ? void 0 : data.subFilter : subFilterDefault;
}
static getContactDefault() {
return "";
}
static getContactDescription() {
return "The contact information provided by the signer.";
}
static getDateDefault() {
return "";
}
static getDateDescription() {
return "The date the signature has been created.";
}
static getFilterDefault() {
return "";
}
static getFilterDescription() {
return "The name of the preferred signature handler used for validation. (Adobe.PPKLite, EntrustPPKEF etc.)";
}
static getLocationDefault() {
return "";
}
static getLocationDescription() {
return "The location the document has been signed at.";
}
static getNameDefault() {
return "";
}
static getNameDescription() {
return "The name of the person or authority signing the document.";
}
static getObjectKeyDefault() {
return "";
}
static getObjectKeyDescription() {
return "The object ID of the signature. **Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.";
}
static getReasonDefault() {
return "";
}
static getReasonDescription() {
return "The reason for signing the document.";
}
static getSubFilterDefault() {
return "";
}
static getSubFilterDescription() {
return "The encoding of the signature value, that shall also be used for validation. (adbe.x509.rsa\\_sha1, adbe.pkcs7.sha1, etc.)";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new MetadataSignature(data);
}
toJson() {
return {
'contact': this.contact,
'date': this.date,
'filter': this.filter,
'location': this.location,
'name': this.name,
'objectKey': this.objectKey,
'reason': this.reason,
'subFilter': this.subFilter,
};
}
clone() {
return MetadataSignature.fromJson(this.toJson());
}
}
exports.MetadataSignature = MetadataSignature;
//# sourceMappingURL=MetadataSignature.js.map