Readonly
namespaceConstructs an instance of the class.
This constructor calls the superclass constructor with the provided arguments.
It also assigns the webex
property to the $webex
property, ignoring TypeScript errors.
Rest
...args: any[]The arguments to pass to the superclass constructor.
Downloads and decrypts a file from the given URI.
A promise that resolves to the decrypted ArrayBuffer.
If the file download or decryption fails.
const attachmentURL = 'https:/myfileurl.xyz/zzz/fileid?keyUri=somekeyuri&JWE=somejwe';
const options: FileDownloadOptions = {
useFileService: false,
jwe: somejwe, // Provide the JWE here if not already present in the attachmentURL
keyUri: someKeyUri, // Provide the keyURI here if not already present in the attachmentURL
};
const decryptedBuf = await webex.cypher.downloadAndDecryptFile(attachmentURL, options);
const file = new File([decryptedBuf], "myFileName.jpeg", {type: 'image/jpeg'});
The URI of the file to be decrypted.
The options for file download.
Description
Encryption APIs for KMS