33#ifndef API_MIP_PROTECTION_PROTECTION_COMMON_TYPES_H_
34#define API_MIP_PROTECTION_PROTECTION_COMMON_TYPES_H_
36#define DYNAMIC_WATERMARK_CAPABILITY "dynamicwatermark"
56 const std::vector<uint8_t>& serializedPublishingLicense)
59 mIssuedTime(std::chrono::system_clock::from_time_t(0)),
63 const std::vector<uint8_t>& serializedPreLicense,
64 const std::vector<uint8_t>& serializedPublishingLicense)
68 mIssuedTime(std::chrono::system_clock::from_time_t(0)),
71 void SetParsedData(std::shared_ptr<ParsedPublishingLicense> parsedPublishingLicense) {
73 mDomains = parsedPublishingLicense->GetDomains();
75 mContentId = parsedPublishingLicense->GetContentId();
76 mIssuerId = parsedPublishingLicense->GetIssuerId();
79 mOwner = parsedPublishingLicense->GetOwner();
81 mDescriptor = parsedPublishingLicense->GetDescriptor();
84 mIssuedTime = parsedPublishingLicense->GetIssuedTime();
85 mLabelInfo = parsedPublishingLicense->GetLabelInfo();
89#if !defined(SWIG) && !defined(SWIG_DIRECTORS)
90 [[deprecated(
"This version of SetParsedData is deprecated, use the version that accepts a ParsedPublishingLicense")]]
93 const std::vector<std::string>& domains,
94 const std::string& serverPublicCert,
95 const std::string& contentId,
96 const std::string& issuerId) {
Holds the details of a Publishing License used to create a protection handler.
Definition protection_common_types.h:53
std::vector< uint8_t > mSerializedPublishingLicense
Definition protection_common_types.h:127
PublishingLicenseInfo(const std::vector< uint8_t > &serializedPreLicense, const std::vector< uint8_t > &serializedPublishingLicense)
Definition protection_common_types.h:62
std::string mIssuerId
Definition protection_common_types.h:132
const std::vector< uint8_t > & GetPreLicense() const
Definition protection_common_types.h:105
bool IsLicenseParsed() const
Definition protection_common_types.h:112
std::vector< std::shared_ptr< LicenseApplicationData > > mSignedApplicationData
Definition protection_common_types.h:140
const std::vector< uint8_t > & GetSerializedPublishingLicense() const
Definition protection_common_types.h:104
std::string mSealedKeyType
Definition protection_common_types.h:133
const std::string & GetSealedKeyType() const
Definition protection_common_types.h:110
std::string mContentId
Definition protection_common_types.h:131
const std::string & GetDoubleKeyAlgorithm() const
Definition protection_common_types.h:115
std::shared_ptr< LicenseDescriptor > mDescriptor
Definition protection_common_types.h:138
std::string mServerPublicCert
Definition protection_common_types.h:130
const std::chrono::time_point< std::chrono::system_clock > & GetIssuedTime() const
Definition protection_common_types.h:121
const std::string & GetServerPublicCertificate() const
Definition protection_common_types.h:108
const std::string & GetReferralInfoUrl() const
Definition protection_common_types.h:119
const mip::LabelInfo GetLabelInfo() const
Definition protection_common_types.h:122
std::shared_ptr< LicenseDescriptor > GetDescriptor() const
Definition protection_common_types.h:118
std::string mReferralInfoUrl
Definition protection_common_types.h:139
std::string mOwner
Definition protection_common_types.h:136
std::vector< uint8_t > mPreLicense
Definition protection_common_types.h:126
const std::vector< std::string > & GetDomains() const
Definition protection_common_types.h:107
std::shared_ptr< LicenseConnectionInfo > mConnectionInfo
Definition protection_common_types.h:137
std::string mDoubleKeyAlgorithm
Definition protection_common_types.h:135
const std::string & GetContentId() const
Definition protection_common_types.h:111
std::vector< uint8_t > mEncryptedRightsData
Definition protection_common_types.h:143
std::shared_ptr< LicenseConnectionInfo > GetConnectionInfo() const
Definition protection_common_types.h:117
std::vector< std::string > mDomains
Definition protection_common_types.h:129
const std::string & GetIssuerId() const
Definition protection_common_types.h:109
std::chrono::time_point< std::chrono::system_clock > mIssuedTime
Definition protection_common_types.h:141
void SetParsedData(std::shared_ptr< ParsedPublishingLicense > parsedPublishingLicense)
Definition protection_common_types.h:71
const std::vector< std::shared_ptr< LicenseApplicationData > > & GetSignedApplicationData() const
Definition protection_common_types.h:120
const std::vector< uint8_t > & GetEncryptedRightsData() const
Definition protection_common_types.h:123
bool HasPreLicense() const
Definition protection_common_types.h:113
bool mIsParsed
Definition protection_common_types.h:134
void SetParsedData(const std::vector< std::string > &domains, const std::string &serverPublicCert, const std::string &contentId, const std::string &issuerId)
Definition protection_common_types.h:92
LabelInfo mLabelInfo
Definition protection_common_types.h:142
const std::string & GetOwner() const
Definition protection_common_types.h:116
PublishingLicenseInfo(const std::vector< uint8_t > &serializedPublishingLicense)
Definition protection_common_types.h:55
bool GetIsDoubleKeyLicense() const
Definition protection_common_types.h:114
Defines LicenseConnectionInfo interface.
Defines LicenseDescriptor interface.
Contains details of a parsed publishing license.
CipherMode
Cipher mode identifier.
Definition protection_common_types.h:149
@ CIPHER_MODE_CBC4KNOPADDING
@ CIPHER_MODE_CBC512NOPADDING
Label information for a template or ad-hoc (custom) protection.
Definition protection_descriptor.h:60