Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 | 3x 3x 3x 3x 3x 3x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 5x 5x 7x 7x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 2x 2x 2x 78x 2x 2x 2x 1x 2x 1x 80x 80x 80x 7x 7x 5x 5x 5x 5x 3x 3x 3x 2x 2x 2x 2x 7x 75x 75x 75x 75x 75x 75x 2x 2x 1x 1x 2x 7x 4x 7x 5x 12x 4x 14x 10x 5x 4x 13x 10x 3x 12x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 7x 5x 5x 5x 5x 8x 2x 3x | "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const PassmanCrypto_1 = require("../Service/PassmanCrypto"); const DownloadService_1 = require("../Service/DownloadService"); const File_1 = require("./File"); const html_escaper_1 = require("html-escaper"); const SharingACL_1 = require("./SharingACL"); class Credential { vault; server; ENCRYPTED_FIELDS = ['description', 'username', 'password', 'files', 'custom_fields', 'otp', 'email', 'tags', 'url', 'compromised', 'shared_key']; /** * Contains all ENCRYPTED_FIELDS that matches to one of the types: string|number|boolean|null */ SERIALIZABLE_ENCRYPTED_FIELDS = ['description', 'username', 'password', 'email', 'url', 'compromised', 'shared_key']; /** * encryptedData & spacialServerUpdateFields needs to be merged in order to save to credential to the server (api) * @protected */ encryptedData; /** * Should not be overwritten/cleared during Credential instance lifetime, since it contains acl data managed by ShareService. * @protected */ _spacialServerUpdateFields; /** * This is always set if the credential is shared with us. * * The sharedCredentialEncryptionKey is encrypted with the vault key and injected by ShareService. * To be able to hold this credential instance in an (initial, fully) unencrypted state (needed to fetch the full vault without vault key given), * we need to split the encrypted and unencrypted shared credential encryption keys. */ encryptedSharedCredentialEncryptionKey; sharedCredentialEncryptionKey; decryptedDataCache; foundUnspecifiedEncryptionError = false; decryptedDataCacheName; // can be used to re-encrypt credential data, if the original vault key is not changed yet overwriteVaultKey = undefined; constructor(vault, server, encryptedData = undefined) { this.vault = vault; this.server = server; this.encryptedData = encryptedData; this._spacialServerUpdateFields = {}; this.decryptedDataCache = {}; if (encryptedData === undefined) { this.encryptedData = {}; this.initializeAllFields(); } this.vault_id = vault.vaultId; this.decryptedDataCacheName = this.getVaultGuid() + '_' + this.guid; } initializeAllFields() { this.user_id = null; this.vault_id = null; this.label = null; this.description = null; this.tags = []; this.email = null; this.username = null; this.password = null; this.url = null; this.files = []; this.custom_fields = []; this.otp = {}; this.compromised = null; this.shared_key = null; this.favicon = null; this.icon = null; this.renew_interval = null; this.expire_time = 0; this.delete_time = 0; this.hidden = null; this.created = null; this.changed = null; this.set_share_key = null; this.skip_revision = null; } /** * Save new credential on the server. * The current credential object will be updated with the server response data if possible. */ async save() { let requestData = { ...this.encryptedData, ...this._spacialServerUpdateFields }; let credentialResponse = await this.server.postJson('/credentials', requestData, (response) => { this.server.logger.onError(response.message); }); if (credentialResponse) { this.encryptedData = credentialResponse; this.decryptedDataCache = {}; this.tags.forEach(value => value.text && this.vault.collectedTags.add(value.text)); } return credentialResponse; } /** * Update / edit an existing credential on the server. * The current credential object will be updated with the server response data if possible. * This will not touch the virtual acl field. */ async update() { if (this.acl === undefined || this.acl.permissions.hasPermission(SharingACL_1.SharingACL.permissions.WRITE)) { let requestData = { ...this.encryptedData, ...this._spacialServerUpdateFields }; let credentialResponse = await this.server.postJson('/credentials/' + this.guid, requestData, (response) => { this.server.logger.onError(response.message); }, 'PATCH'); if (credentialResponse) { this.encryptedData = credentialResponse; this.decryptedDataCache = {}; if (Array.isArray(this.tags)) { this.tags.forEach(value => value?.text && this.vault.collectedTags.add(value.text)); } else { // recover correct tags structure this.tags = []; } } return credentialResponse; } } /** * Refresh the local credential data based on the server, using the credentials guid. * It is not supported to do that for credentials, shared with us. (Therefore this will not touch the virtual acl field.) */ async refresh() { if (this.encryptedSharedCredentialEncryptionKey) { // credential is shared with us // no credential refresh possible, since there is no backend api to do that for a specific shared credential // if it will be implemented in the future, don't forget to update the acl field, that's currently injected by ShareService } else { this.clearDecryptedDataCache(true); let credentialResponse = await this.server.getJson('/credentials/' + this.guid, (response) => { this.server.logger.onError(response.message); }); if (credentialResponse) { this.encryptedData = credentialResponse; this.decryptedDataCache = {}; if (Array.isArray(this.tags)) { this.tags.forEach(value => value?.text && this.vault.collectedTags.add(value.text)); } else { // recover correct tags structure this.tags = []; } } return credentialResponse; } } /** * Destroys the credential on the server and removes itself from its local vault. */ async destroy() { if (this.acl === undefined || this.acl.permissions.hasPermission(SharingACL_1.SharingACL.permissions.WRITE)) { this.clearDecryptedDataCache(true); let credentialResponse = await this.server.deleteJson('/credentials/' + this.guid, (response) => { this.server.logger.onError(response.message); }); const pos = this.vault.credentials.indexOf(this); this.vault.credentials.splice(pos, 1); return credentialResponse; } } /** * This is the correct function to "lock" the credential (to be called subsequently when the vault got locked). * It clears the decrypted credential data cache as well as a potential sharedCredentialEncryptionKey. * This will not clear the serialized decrypted data cache, managed by the used DecryptedDataCachingHandlerInterface implementation. * Set clearCachingHandlerManagedDecryptedData=true to do so (by calling getDecryptedDataCacheHandler().clearCacheByName('...')) */ clearDecryptedDataCache(clearCachingHandlerManagedDecryptedData = false) { this.decryptedDataCache = {}; this.sharedCredentialEncryptionKey = undefined; Iif (clearCachingHandlerManagedDecryptedData) { // atm. we are not interested in the result, so we keep the returned Promise running in background this.server.persistence.getDecryptedDataCacheHandler()?.clearCacheByName(this.decryptedDataCacheName); } } /** * Restore only serializable fields of the CredentialInterface. */ async restoreSerializedDecryptedDataCache() { const cacheHandler = this.server.persistence.getDecryptedDataCacheHandler(); for (const propertyName of this.SERIALIZABLE_ENCRYPTED_FIELDS) { this.decryptedDataCache[propertyName] = await cacheHandler?.get(this.decryptedDataCacheName, propertyName); } } /** * Update or delete an entry in the decrypted data cache. * @param propertyName * @param deleteFromCache */ updateSerializedDecryptedDataCacheEntry(propertyName, deleteFromCache = false) { Iif (this.SERIALIZABLE_ENCRYPTED_FIELDS.includes(propertyName) && this.server.persistence.getDecryptedDataCacheHandler()) { return this.server.persistence.getDecryptedDataCacheHandler().set(this.decryptedDataCacheName, propertyName, deleteFromCache ? undefined : this.decryptedDataCache[propertyName]); } } /** * Create a credential object based on its encrypted data. * @param data * @param vault * @param server */ static fromData(data, vault, server) { return new Credential(vault, server, data); } /** * Create a credential object based on its guid. This will fetch the current credential data from the server. * @param guid * @param vault * @param server */ static async fromGuid(guid, vault, server) { let cred = new Credential(vault, server); cred.guid = guid; await cred.refresh(); return cred; } static fromSerializable(serialized, vault, server) { const credential = new Credential(vault, server, serialized.encryptedData); credential.encryptedSharedCredentialEncryptionKey = serialized.encryptedSharedCredentialEncryptionKey; if (serialized.acl) { credential.acl = { permissions: new SharingACL_1.SharingACL(serialized.acl.permission), ...serialized.acl }; } return credential; } async getRevisions() { return await this.server.getJson('/credentials/' + this.guid + '/revision', (response) => { this.server.logger.onError(response.message); }); } /** * Update credential (encryptedData store) with the new values, if they have changed. * This does not update the servers credential instance. * @param decryptedCredentialData */ updateData(decryptedCredentialData) { // todo: fill Interfaces folder Object.keys(decryptedCredentialData).forEach((key) => { if (key !== 'files' || (key === 'files' && this.acl === undefined || this.acl.permissions.hasPermission(SharingACL_1.SharingACL.permissions.FILES))) { if (this.ENCRYPTED_FIELDS.indexOf(key) > -1) { // todo: improve check if array or object types have changed if (this.encryptedData[key] !== decryptedCredentialData[key] || typeof decryptedCredentialData[key] !== 'string') { if (key === 'shared_key') { // this special field is not encrypted, if it only contains a null value, since it won't be json stringified if (decryptedCredentialData[key] !== undefined && decryptedCredentialData[key] !== null && decryptedCredentialData[key] !== 'null' && decryptedCredentialData[key] !== '') { this.encryptedData[key] = decryptedCredentialData[key]; } } else { this.setEncryptFieldData(key, decryptedCredentialData[key]); } } } else { this.encryptedData[key] = decryptedCredentialData[key]; } } }); } exportData() { return { user_id: this.user_id, vault_id: this.vault_id, label: this.label, description: this.description, tags: this.tags, email: this.email, username: this.username, password: this.password, url: this.url, files: (this.acl === undefined || this.acl.permissions.hasPermission(SharingACL_1.SharingACL.permissions.FILES)) ? this.files : [], custom_fields: this.custom_fields, otp: this.otp, compromised: this.compromised, shared_key: this.shared_key, favicon: this.favicon, icon: this.icon, renew_interval: this.renew_interval, expire_time: this.expire_time, delete_time: this.delete_time, hidden: this.hidden, created: this.created, changed: this.changed, set_share_key: this.set_share_key, skip_revision: this.skip_revision }; } /** * Creates a local 100% clone of the current credential. The clone contains only encrypted data. */ clone() { const newCredential = new Credential(this.vault, this.server, this.encryptedData); newCredential.encryptedSharedCredentialEncryptionKey = this.encryptedSharedCredentialEncryptionKey; return newCredential; } /** * Check whether the credential has a valid shared_key. * If true, it is a credential, that's encrypted with the decrypted shared_key field content. */ hasValidSharedKey() { return this.encryptedData.shared_key !== undefined && this.encryptedData.shared_key !== null && this.encryptedData.shared_key !== 'null' && this.encryptedData.shared_key !== ''; } /** * Creates a local 100% clone of the current credential and re-encrypts it with the given key. */ reEncryptAsClone(newVaultKey) { const newCredential = this.clone(); if (this.hasValidSharedKey()) { // only re-encrypt the shared key, if the credential is shared and not encrypted with the vault key like default credentials const decrypted_shared_key = newCredential.shared_key; newCredential.set_share_key = true; newCredential.skip_revision = true; newCredential.overwriteVaultKey = newVaultKey; newCredential.encryptedData.shared_key = PassmanCrypto_1.PassmanCrypto.encryptString(decrypted_shared_key, newVaultKey); } else { // default (100% owned) credential const decryptedCredentialData = newCredential.exportData(); newCredential.overwriteVaultKey = newVaultKey; newCredential.updateData(decryptedCredentialData); newCredential.skip_revision = true; } return newCredential; } getFieldEncryptionKey(fieldName = null) { Iif (fieldName !== 'shared_key' && this.encryptedData.shared_key !== undefined && this.encryptedData.shared_key !== null && this.encryptedData.shared_key !== 'null' && this.encryptedData.shared_key !== '') { // got a credential that is shared with others if (this.decryptedDataCache.shared_key === undefined) { this.decryptedDataCache.shared_key = PassmanCrypto_1.PassmanCrypto.decryptString(this.encryptedData.shared_key, this.overwriteVaultKey ?? this.vault.vaultKey); } if (this.decryptedDataCache.shared_key != null) { // is this.encryptedData.shared_key is set, but a null value was encrypted, do not return it return this.decryptedDataCache.shared_key; } } Iif (this.encryptedSharedCredentialEncryptionKey !== undefined) { if (!this.sharedCredentialEncryptionKey) { this.sharedCredentialEncryptionKey = PassmanCrypto_1.PassmanCrypto.decryptString(this.encryptedSharedCredentialEncryptionKey, this.vault.vaultKey); } return this.sharedCredentialEncryptionKey; } return this.overwriteVaultKey ?? this.vault.vaultKey; } /** * Returns (json parsed) field data and decrypt / caches it if required. * * @param property key of ILEncryptedCredential * @private */ getCacheDecryptFieldData(property) { Eif (this.ENCRYPTED_FIELDS.indexOf(property) > -1) { if (!Object.hasOwn(this.decryptedDataCache, property) || this.decryptedDataCache[property] === undefined) { Iif (this.encryptedData[property] === null) { this.decryptedDataCache[property] = null; } else { // should never happen, but who knows xD Iif (this.encryptedData[property] === undefined) { this.server.logger.anyError('Corrupt credential data detected. Undefined value for encryptedData.' + property + ' not allowed! encryptedData: '); this.server.logger.anyError(this.encryptedData); throw new Error('Corrupt credential data detected. Undefined value for encryptedData.' + property + ' not allowed!'); } let decryptedData; try { decryptedData = PassmanCrypto_1.PassmanCrypto.decryptString(this.encryptedData[property], this.getFieldEncryptionKey(property)); // check for non-json content field Iif (property === 'shared_key') { this.decryptedDataCache[property] = decryptedData; } else { this.decryptedDataCache[property] = JSON.parse(decryptedData); } // should work, even if we do not wait for the returned Promise this.updateSerializedDecryptedDataCacheEntry(property); } catch (e) { this.foundUnspecifiedEncryptionError = true; this.server.logger.anyError(e); this.server.logger.anyError(decryptedData ?? 'no decrypted data: (undefined)'); this.server.logger.onError('Failed to decrypt field: ' + property + ' of credential: ' + this.label); } } } return this.decryptedDataCache[property]; } // no need to cache nor json parse fields without encryption return this.encryptedData[property]; } /** * Pass the plain field data so that it can be stored stringified and encrypted. * * @param property * @param data * @private */ setEncryptFieldData(property, data) { if (this.ENCRYPTED_FIELDS.indexOf(property) > -1) { try { // check for non-json content field Iif (property === 'shared_key') { this.encryptedData[property] = PassmanCrypto_1.PassmanCrypto.encryptString(data, this.getFieldEncryptionKey(property)); } else { // use data ?? null to prevent undefined value (which could lead to an error in decryption) this.encryptedData[property] = PassmanCrypto_1.PassmanCrypto.encryptString(JSON.stringify(data ?? null), this.getFieldEncryptionKey(property)); } } catch (e) { this.foundUnspecifiedEncryptionError = true; this.server.logger.anyError(e); this.server.logger.onError('Failed to encrypt field: ' + property + ' of credential: ' + this.label); return; } this.decryptedDataCache[property] = data; this.updateSerializedDecryptedDataCacheEntry(property); } else E{ this.encryptedData[property] = data; } } async downloadFile(file, directDownload = true) { if (file.filename === undefined || file.mimetype === undefined) { return; } const key = this.getFieldEncryptionKey(); const logger = this.server.logger; const callback = function (result) { if (!result.hasOwnProperty('file_data')) { logger.onError('Error downloading file (' + file.filename + '), you probably have insufficient permissions'); return; } try { const file_data = PassmanCrypto_1.PassmanCrypto.decryptString(result.file_data, key); if (directDownload) { DownloadService_1.DownloadService.download(file_data, (0, html_escaper_1.escape)(file.filename), file.mimetype); } else { return file_data; } } catch (e) { logger.anyError(e); logger.onError('Failed to decrypt file: ' + file.filename); } }; if (!this.acl) { return File_1.File.downloadFile(file, this.server).then(callback); } else { return File_1.File.downloadSharedFile(this, file, this.server).then(callback); } } /** * Takes plain file data, encrypts and uploads it. * This method does *not* add the file to the local credential files list! * Adding it to the files list as well as a call to save() or update() is required to associate the file persistent with the credential. * @param plainFile */ encryptUploadFile(plainFile) { try { const encryptedFile = { data: PassmanCrypto_1.PassmanCrypto.encryptString(plainFile.data, this.getFieldEncryptionKey()), filename: PassmanCrypto_1.PassmanCrypto.encryptString(JSON.stringify(plainFile.filename), this.getFieldEncryptionKey()), mimetype: plainFile.mimetype, size: plainFile.size }; const callback = function (uploadFileResponse) { return uploadFileResponse; }; if (!this.acl) { return File_1.File.uploadFile(encryptedFile, this.server).then(callback); } else { return File_1.File.uploadSharedFile(this, encryptedFile, this.server).then(callback); } } catch (e) { this.foundUnspecifiedEncryptionError = true; this.server.logger.anyError(e); this.server.logger.onError('Failed to encrypt new file (' + plainFile.filename + ') of credential: ' + this.label); } } /** * Serialized, encrypted credential data from non-object (string only) transfer methods (like WebExtension messaging api). */ getAsSerializable() { let acl = undefined; if (this.acl) { let { permissions, ...newAcl } = { permission: this.acl.permissions.permission, ...this.acl }; acl = newAcl; } return { encryptedData: this.getEncrypted(), encryptedSharedCredentialEncryptionKey: this.encryptedSharedCredentialEncryptionKey, acl }; } /** * Deletes the given file from the server. * This method does *not* delete the file from the local credential files list! * @param file */ deleteFile(file) { return File_1.File.deleteFile(file, this.server); } getVaultGuid() { return this.vault.guid; } getEncrypted() { return this.encryptedData; } hasUnspecifiedEncryptionError() { return this.foundUnspecifiedEncryptionError; } get credential_id() { return this.encryptedData.credential_id; } set credential_id(value) { this.encryptedData.credential_id = value; } get guid() { return this.encryptedData.guid; } set guid(value) { this.encryptedData.guid = value; } get user_id() { return this.encryptedData.user_id; } set user_id(value) { this.encryptedData.user_id = value; } get vault_id() { return this.encryptedData.vault_id; } set vault_id(value) { this.encryptedData.vault_id = value; } get label() { return this.encryptedData.label; } set label(value) { this.encryptedData.label = value; } get description() { return this.getCacheDecryptFieldData('description'); } set description(value) { this.setEncryptFieldData('description', value); } get tags() { return this.getCacheDecryptFieldData('tags'); } set tags(value) { this.setEncryptFieldData('tags', value); } get email() { return this.getCacheDecryptFieldData('email'); } set email(value) { this.setEncryptFieldData('email', value); } get username() { return this.getCacheDecryptFieldData('username'); } set username(value) { this.setEncryptFieldData('username', value); } get password() { return this.getCacheDecryptFieldData('password'); } set password(value) { this.setEncryptFieldData('password', value); } get url() { return this.getCacheDecryptFieldData('url'); } set url(value) { this.setEncryptFieldData('url', value); } get files() { return this.getCacheDecryptFieldData('files'); } set files(value) { this.setEncryptFieldData('files', value); } get custom_fields() { return this.getCacheDecryptFieldData('custom_fields'); } set custom_fields(value) { this.setEncryptFieldData('custom_fields', value); } get otp() { return this.getCacheDecryptFieldData('otp'); } set otp(value) { this.setEncryptFieldData('otp', value); } get compromised() { return this.getCacheDecryptFieldData('compromised'); } set compromised(value) { this.setEncryptFieldData('compromised', value); } /** * This special field is not encrypted, if it only contains a null value. */ get shared_key() { if (this.encryptedData.shared_key !== undefined && this.encryptedData.shared_key !== null && this.encryptedData.shared_key !== 'null' && this.encryptedData.shared_key !== '') { return this.getCacheDecryptFieldData('shared_key'); } return null; } /** * This special field is not encrypted, if it only contains a null value. * @param value */ set shared_key(value) { if (value === null || value === '' || value === 'null') { this.encryptedData.shared_key = null; } else E{ this.setEncryptFieldData('shared_key', value); } } get favicon() { return this.encryptedData.favicon; } set favicon(value) { this.encryptedData.favicon = value; } get icon() { return this.encryptedData.icon; } set icon(value) { this.encryptedData.icon = value; } get renew_interval() { return this.encryptedData.renew_interval; } set renew_interval(value) { this.encryptedData.renew_interval = value; } get expire_time() { return this.encryptedData.expire_time; } set expire_time(value) { this.encryptedData.expire_time = value; } get delete_time() { return this.encryptedData.delete_time; } set delete_time(value) { this.encryptedData.delete_time = value; } get hidden() { return this.encryptedData.hidden; } set hidden(value) { this.encryptedData.hidden = value; } get created() { return this.encryptedData.created; } set created(value) { this.encryptedData.created = value; } get changed() { return this.encryptedData.changed; } set changed(value) { this.encryptedData.changed = value; } get set_share_key() { return this._spacialServerUpdateFields.set_share_key; } set set_share_key(value) { this._spacialServerUpdateFields.set_share_key = value; } get skip_revision() { return this._spacialServerUpdateFields.skip_revision; } set skip_revision(value) { this._spacialServerUpdateFields.skip_revision = value; } get acl() { return this._spacialServerUpdateFields.acl; } /** * Will be called short after credential instantiation by the ShareService. * @param value */ set acl(value) { this._spacialServerUpdateFields.acl = value; } get spacialServerUpdateFields() { return this._spacialServerUpdateFields; } } exports.default = Credential; |