| 12345678910111213141516171819202122232425 | 
							- import { KeyHandler } from './KeyHandler';
 - 
 - /**
 -  * This module integrates {@link E2EEContext} with {external} in order to set the keys for encryption.
 -  */
 - export class ExternallyManagedKeyHandler extends KeyHandler {
 -     /**
 -      * Build a new ExternallyManagedKeyHandler instance, which will be used in a given conference.
 -      * @param conference - the current conference.
 -      */
 -     constructor(conference) {
 -         super(conference, { sharedKey: true });
 -     }
 - 
 -     /**
 -      * Sets the key and index for End-to-End encryption.
 -      *
 -      * @param {CryptoKey} [keyInfo.encryptionKey] - encryption key.
 -      * @param {Number} [keyInfo.index] - the index of the encryption key.
 -      * @returns {void}
 -      */
 -     setKey(keyInfo) {
 -         this.e2eeCtx.setKey(undefined, { encryptionKey: keyInfo.encryptionKey }, keyInfo.index);
 -     }
 - }
 
 
  |