diff options
author | Jay Berkenbilt <ejb@ql.org> | 2012-12-26 22:04:54 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-12-31 11:36:50 +0100 |
commit | 68447bb556364efefc41a3af72a9455b6e43c137 (patch) | |
tree | 6bb7d759f48e9802a1d8e6b845bb36f7d5e49e97 /include | |
parent | 04c203ae060458ae39253263c7dd1c603b931bf0 (diff) | |
download | qpdf-68447bb556364efefc41a3af72a9455b6e43c137.tar.zst |
change EncryptionData
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; |