Add edit_rate accessor.
[libdcp.git] / src / encrypted_kdm.h
index 1fcd37f41fca5f96d354193dc71f589aea9a020f..9e5b09d4510ba0ea67979d8afbc39c5065cb9f9d 100644 (file)
@@ -39,7 +39,7 @@ namespace data {
        class EncryptedKDMData;
 }
 
-class Signer;  
+class CertificateChain;
 class Certificate;
 
 /** @class EncryptedKDM
@@ -70,15 +70,20 @@ public:
         *  keys (also key id, CPL id etc.)
         */
        std::list<std::string> keys () const;
-       
+
+       std::string annotation_text () const;
+       std::string content_title_text () const;
+       std::string issue_date () const;
+
 private:
 
        friend class DecryptedKDM;
 
        /** Construct an EncryptedKDM from a set of details */
        EncryptedKDM (
-               boost::shared_ptr<const Signer> signer,
-               boost::shared_ptr<const Certificate> recipient,
+               boost::shared_ptr<const CertificateChain> signer,
+               Certificate recipient,
+               std::vector<Certificate> trusted_devices,
                std::string device_list_description,
                std::string cpl_id,
                std::string cpl_content_title_text,
@@ -88,10 +93,12 @@ private:
                std::list<std::pair<std::string, std::string> > key_ids,
                std::list<std::string> keys
                );
-       
+
        data::EncryptedKDMData* _data;
 };
 
+extern bool operator== (EncryptedKDM const & a, EncryptedKDM const & b);
+
 }
 
 #endif