diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDF.hh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index b2e73929..70ba3e95 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -223,8 +223,10 @@ class QPDF // Encryption support enum encryption_method_e { e_none, e_unknown, e_rc4, e_aes }; - struct EncryptionData + class EncryptionData { + public: + // This class holds data read from the encryption dictionary. EncryptionData(int V, int R, int Length_bytes, int P, std::string const& O, std::string const& U, @@ -240,6 +242,22 @@ class QPDF { } + int getV() const; + int getR() const; + int getLengthBytes() const; + int getP() const; + std::string const& getO() const; + std::string const& getU() const; + std::string const& getId1() const; + bool getEncryptMetadata() const; + + void setO(std::string const&); + void setU(std::string const&); + + private: + EncryptionData(EncryptionData const&); + EncryptionData& operator=(EncryptionData const&); + int V; int R; int Length_bytes; |