MCPcopy Create free account
hub / github.com/LibPDF-js/core / setAuthenticated

Method setAuthenticated

src/security/standard-handler.ts:392–397  ·  view source on GitHub ↗

* Set authenticated state and create handlers.

(encryptionKey: Uint8Array, isOwner: boolean)

Source from the content-addressed store, hash-verified

390 * Set authenticated state and create handlers.
391 */
392 private setAuthenticated(encryptionKey: Uint8Array, isOwner: boolean): void {
393 this.encryptionKey = encryptionKey;
394 this.authenticated = true;
395 this.isOwner = isOwner;
396 this.handlers = createHandlers(this.encryptDict, encryptionKey);
397 }
398
399 // ─────────────────────────────────────────────────────────────────────────────
400 // Encryption methods

Callers 4

tryUserPasswordR2R4Method · 0.95
tryOwnerPasswordR2R4Method · 0.95
tryUserPasswordR56Method · 0.95
tryOwnerPasswordR56Method · 0.95

Calls 1

createHandlersFunction · 0.90

Tested by

no test coverage detected