Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Interface IEncryptionMethod

    Used for decrypting resources, encrypted with a specific encryption method.

    IEncryptionMethod instances are typically used with a publication by adding them to a DrmManager.

    interface IEncryptionMethod {
        decrypt(
            buffer: Uint8Array,
            metadata: IResourceMetadata,
            xmlEncryptionEntry: IXmlEncryptionEntry,
        ): Promise<Uint8Array<ArrayBufferLike>>;
        getName(): string;
    }

    Implemented by

    Methods

    • Get the name of this encryption method.

      For XML encryption, this should be the EncryptionMethod element`s Algorithm attribute. For example, for the following XML, this method should return "http://www.idpf.org/2008/embedding":

       
           
           
               
           
       
      

      Returns string