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.
std::vector< uint8_t > mSerializedPublishingLicense
PublishingLicenseInfo(const std::vector< uint8_t > &serializedPreLicense, const std::vector< uint8_t > &serializedPublishingLicense)
const std::vector< uint8_t > & GetPreLicense() const
bool IsLicenseParsed() const
std::vector< std::shared_ptr< LicenseApplicationData > > mSignedApplicationData
const std::vector< uint8_t > & GetSerializedPublishingLicense() const
std::string mSealedKeyType
const std::string & GetSealedKeyType() const
const std::string & GetDoubleKeyAlgorithm() const
std::shared_ptr< LicenseDescriptor > mDescriptor
std::string mServerPublicCert
const std::chrono::time_point< std::chrono::system_clock > & GetIssuedTime() const
const std::string & GetServerPublicCertificate() const
const std::string & GetReferralInfoUrl() const
const mip::LabelInfo GetLabelInfo() const
std::shared_ptr< LicenseDescriptor > GetDescriptor() const
std::string mReferralInfoUrl
std::vector< uint8_t > mPreLicense
const std::vector< std::string > & GetDomains() const
std::shared_ptr< LicenseConnectionInfo > mConnectionInfo
std::string mDoubleKeyAlgorithm
const std::string & GetContentId() const
std::vector< uint8_t > mEncryptedRightsData
std::shared_ptr< LicenseConnectionInfo > GetConnectionInfo() const
std::vector< std::string > mDomains
const std::string & GetIssuerId() const
std::chrono::time_point< std::chrono::system_clock > mIssuedTime
void SetParsedData(std::shared_ptr< ParsedPublishingLicense > parsedPublishingLicense)
const std::vector< std::shared_ptr< LicenseApplicationData > > & GetSignedApplicationData() const
const std::vector< uint8_t > & GetEncryptedRightsData() const
bool HasPreLicense() const
void SetParsedData(const std::vector< std::string > &domains, const std::string &serverPublicCert, const std::string &contentId, const std::string &issuerId)
const std::string & GetOwner() const
PublishingLicenseInfo(const std::vector< uint8_t > &serializedPublishingLicense)
bool GetIsDoubleKeyLicense() const
Defines LicenseConnectionInfo interface.
Defines LicenseDescriptor interface.
Contains details of a parsed publishing license.
CipherMode
Cipher mode identifier.
@ CIPHER_MODE_CBC4KNOPADDING
@ CIPHER_MODE_CBC512NOPADDING
Label information for a template or ad-hoc (custom) protection.