33#ifndef API_MIP_PROTECTION_DESCRIPTOR_H_
34#define API_MIP_PROTECTION_DESCRIPTOR_H_
61 LabelInfo(
const std::string& _labelId,
const std::string& _tenantId) {
Description of protection associated with a piece of content.
virtual std::map< std::string, std::string > GetSignedAppData() const =0
Gets the app-specific data that was signed.
virtual std::map< std::string, std::string > GetEncryptedAppData() const =0
Gets app-specific data that was encrypted.
virtual std::string GetContentId() const =0
Gets the Content ID, if any.
virtual std::shared_ptr< const std::vector< uint8_t > > GetSerializedTemplate() const =0
Gets the serialized template, if any.
virtual std::string GetReferrer() const =0
Gets protection referrer address.
virtual std::string GetDoubleKeyUrl() const =0
Gets the double key url to be used for custom protection.
virtual std::vector< UserRights > GetUserRights() const =0
Gets collection of users-to-rights mappings.
virtual LabelInfo GetLabelInfo() const =0
Gets the label Info, if any.
virtual std::shared_ptr< const DynamicWatermark > GetDynamicWatermark() const =0
Gets the dynamic watermark configured for this content if any.
virtual std::string GetDescription() const =0
Gets protection description.
virtual std::string GetOwner() const =0
Gets owner for the protection.
virtual std::string GetLabelId() const =0
Gets the label ID, if any.
virtual std::chrono::time_point< std::chrono::system_clock > GetContentValidUntil() const =0
Gets protection expiration time.
virtual std::string GetTemplateId() const =0
Gets the protection template ID, if any.
virtual ProtectionType GetProtectionType() const =0
Gets type of protection, whether it originated from protection SDK template or not.
virtual bool DoesContentExpire() const =0
Checks if content has an expiration time or not.
virtual std::vector< UserRoles > GetUserRoles() const =0
Gets collection of users-to-roles mappings.
virtual bool DoesAllowOfflineAccess() const =0
Gets if protection allows offline content access or not.
virtual std::string GetName() const =0
Gets protection name.
Defines DynamicWatermark interface.
ProtectionType
Describes whether protection is based off a template or ad-hoc (custom)
@ TemplateBased
Handle was created from a template.
@ Custom
Handle was created ad hoc.
Label information for a template or ad-hoc (custom) protection.
LabelInfo(const std::string &_labelId, const std::string &_tenantId)
Defines UserRights class.