13 #ifndef VIRTRU_TDF3_SDK_VIRTRU_POLICY_H
14 #define VIRTRU_TDF3_SDK_VIRTRU_POLICY_H
18 #include <unordered_set>
25 class VirtruPolicyObject;
52 void setOwner(
const std::string& owner);
65 void removeUsers(
const std::vector<std::string>& users);
179 std::unique_ptr<Impl>
m_impl;
183 #endif //VIRTRU_TDF3_SDK_VIRTRU_POLICY_H
std::string toString() const
void shareWithUsers(const std::vector< std::string > &users)
Definition: virtru_policy.h:27
std::string getOwner() const
std::string toJsonStringForKas() const
Policy & operator=(const Policy &policy)
Assignment operator.
void removeUsers(const std::vector< std::string > &users)
void enablePersistentProtection()
Turns on persistent protection policy control flag.
void enablePrint()
Turns on print policy control flag.
void disablePersistentProtection()
Turns off persistent protection policy control flag.
void enableOneClick()
Turns on one-click flag.
void enableReshare()
Turns on reshare policy control flag.
void expireInDays(unsigned days)
void disablePreventDownload()
Turns off prevent download policy control flag.
void disablePrint()
Turns off print policy control flag.
std::string getExpiration() const
bool isCopyEnabled() const
void enableWatermarking()
Turns on watermarking policy control flag.
std::unique_ptr< Impl > m_impl
Definition: virtru_policy.h:178
void disableWatermarking()
Turns off watermarking policy control flag.
void disableOneClick()
Turns off one-click flag.
void disableCopy()
Turns off copy policy control flag.
void setOwner(const std::string &owner)
void enablePreventDownload()
Turns on prevent download policy control flag.
void expireInMins(unsigned mins)
bool isPrintEnabled() const
bool isPreventDownloadEnabled() const
void applyPolicy(VirtruPolicyObject &policyObject) const
bool isWatermarkingEnabled() const
std::vector< std::string > getSharedUsers() const
void enableCopy()
Turns on copy policy control flag.
friend Client
Definition: virtru_policy.h:175
void addExpiration(const std::string &expirationDate)
bool isReshareEnabled() const
friend VirtruPolicyObject
Definition: virtru_policy.h:176
void disableReshare()
Turns off reshare policy control flag.
bool isPersistentProtectionEnabled() const
void removeExpiration()
Remove the expiration.