Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
PublishingLicenseInfo Class Reference

Holds the details of a Publishing License used to create a protection handler. More...

#include <src/api/mip/protection/protection_common_types.h>

Public Member Functions

std::shared_ptr< LicenseConnectionInfoGetConnectionInfo () const
 
const std::string & GetContentId () const
 
std::shared_ptr< LicenseDescriptorGetDescriptor () const
 
const std::vector< std::string > & GetDomains () const
 
const std::string & GetDoubleKeyAlgorithm () const
 
const std::vector< uint8_t > & GetEncryptedRightsData () const
 
bool GetIsDoubleKeyLicense () const
 
const std::chrono::time_point< std::chrono::system_clock > & GetIssuedTime () const
 
const std::string & GetIssuerId () const
 
const mip::LabelInfo GetLabelInfo () const
 
const std::string & GetOwner () const
 
const std::vector< uint8_t > & GetPreLicense () const
 
const std::string & GetReferralInfoUrl () const
 
const std::vector< uint8_t > & GetSerializedPublishingLicense () const
 
const std::string & GetServerPublicCertificate () const
 
const std::vector< std::shared_ptr< LicenseApplicationData > > & GetSignedApplicationData () const
 
bool HasPreLicense () const
 
bool IsLicenseParsed () const
 
 PublishingLicenseInfo (const std::vector< uint8_t > &serializedPreLicense, const std::vector< uint8_t > &serializedPublishingLicense)
 
 PublishingLicenseInfo (const std::vector< uint8_t > &serializedPublishingLicense)
 
void SetParsedData (const std::vector< std::string > &domains, const std::string &serverPublicCert, const std::string &contentId, const std::string &issuerId)
 
void SetParsedData (std::shared_ptr< ParsedPublishingLicense > parsedPublishingLicense)
 

Detailed Description

Holds the details of a Publishing License used to create a protection handler.

Definition at line 53 of file protection_common_types.h.

Constructor & Destructor Documentation

◆ PublishingLicenseInfo() [1/2]

PublishingLicenseInfo::PublishingLicenseInfo ( const std::vector< uint8_t > & serializedPublishingLicense)
inline

Definition at line 55 of file protection_common_types.h.

57 : mSerializedPublishingLicense(serializedPublishingLicense),
58 mIsParsed(false),
59 mIssuedTime(std::chrono::system_clock::from_time_t(0)),
60 mLabelInfo("","") {}

◆ PublishingLicenseInfo() [2/2]

PublishingLicenseInfo::PublishingLicenseInfo ( const std::vector< uint8_t > & serializedPreLicense,
const std::vector< uint8_t > & serializedPublishingLicense )
inline

Definition at line 62 of file protection_common_types.h.

65 : mPreLicense(serializedPreLicense),
66 mSerializedPublishingLicense(serializedPublishingLicense),
67 mIsParsed(false),
68 mIssuedTime(std::chrono::system_clock::from_time_t(0)),
69 mLabelInfo("","") {}

Member Function Documentation

◆ GetConnectionInfo()

std::shared_ptr< LicenseConnectionInfo > PublishingLicenseInfo::GetConnectionInfo ( ) const
inline

Definition at line 115 of file protection_common_types.h.

115{ return mConnectionInfo; }

◆ GetContentId()

const std::string & PublishingLicenseInfo::GetContentId ( ) const
inline

Definition at line 109 of file protection_common_types.h.

109{ return mContentId; }

◆ GetDescriptor()

std::shared_ptr< LicenseDescriptor > PublishingLicenseInfo::GetDescriptor ( ) const
inline

Definition at line 116 of file protection_common_types.h.

116{ return mDescriptor; }

◆ GetDomains()

const std::vector< std::string > & PublishingLicenseInfo::GetDomains ( ) const
inline

Definition at line 106 of file protection_common_types.h.

106{ return mDomains; }

◆ GetDoubleKeyAlgorithm()

const std::string & PublishingLicenseInfo::GetDoubleKeyAlgorithm ( ) const
inline

Definition at line 113 of file protection_common_types.h.

113{ return mDoubleKeyAlgorithm; }

◆ GetEncryptedRightsData()

const std::vector< uint8_t > & PublishingLicenseInfo::GetEncryptedRightsData ( ) const
inline

Definition at line 121 of file protection_common_types.h.

121{ return mEncryptedRightsData; }

◆ GetIsDoubleKeyLicense()

bool PublishingLicenseInfo::GetIsDoubleKeyLicense ( ) const
inline

Definition at line 112 of file protection_common_types.h.

112{ return !mDoubleKeyAlgorithm.empty(); }

◆ GetIssuedTime()

const std::chrono::time_point< std::chrono::system_clock > & PublishingLicenseInfo::GetIssuedTime ( ) const
inline

Definition at line 119 of file protection_common_types.h.

119{ return mIssuedTime; }

◆ GetIssuerId()

const std::string & PublishingLicenseInfo::GetIssuerId ( ) const
inline

Definition at line 108 of file protection_common_types.h.

108{ return mIssuerId; }

◆ GetLabelInfo()

const mip::LabelInfo PublishingLicenseInfo::GetLabelInfo ( ) const
inline

Definition at line 120 of file protection_common_types.h.

120{ return mLabelInfo; }

◆ GetOwner()

const std::string & PublishingLicenseInfo::GetOwner ( ) const
inline

Definition at line 114 of file protection_common_types.h.

114{ return mOwner; }

◆ GetPreLicense()

const std::vector< uint8_t > & PublishingLicenseInfo::GetPreLicense ( ) const
inline

Definition at line 104 of file protection_common_types.h.

104{ return mPreLicense; }

◆ GetReferralInfoUrl()

const std::string & PublishingLicenseInfo::GetReferralInfoUrl ( ) const
inline

Definition at line 117 of file protection_common_types.h.

117{ return mReferralInfoUrl; }

◆ GetSerializedPublishingLicense()

const std::vector< uint8_t > & PublishingLicenseInfo::GetSerializedPublishingLicense ( ) const
inline

Definition at line 103 of file protection_common_types.h.

103{ return mSerializedPublishingLicense; }

◆ GetServerPublicCertificate()

const std::string & PublishingLicenseInfo::GetServerPublicCertificate ( ) const
inline

Definition at line 107 of file protection_common_types.h.

107{ return mServerPublicCert; }

◆ GetSignedApplicationData()

const std::vector< std::shared_ptr< LicenseApplicationData > > & PublishingLicenseInfo::GetSignedApplicationData ( ) const
inline

Definition at line 118 of file protection_common_types.h.

118{ return mSignedApplicationData; }

◆ HasPreLicense()

bool PublishingLicenseInfo::HasPreLicense ( ) const
inline

Definition at line 111 of file protection_common_types.h.

111{ return !mPreLicense.empty(); }

◆ IsLicenseParsed()

bool PublishingLicenseInfo::IsLicenseParsed ( ) const
inline

Definition at line 110 of file protection_common_types.h.

110{ return mIsParsed; }

◆ SetParsedData() [1/2]

void PublishingLicenseInfo::SetParsedData ( const std::vector< std::string > & domains,
const std::string & serverPublicCert,
const std::string & contentId,
const std::string & issuerId )
inline

Definition at line 91 of file protection_common_types.h.

95 {
96 mDomains = domains;
97 mServerPublicCert = serverPublicCert;
98 mContentId = contentId;
99 mIssuerId = issuerId;
100 mIsParsed = true;
101 }

◆ SetParsedData() [2/2]

void PublishingLicenseInfo::SetParsedData ( std::shared_ptr< ParsedPublishingLicense > parsedPublishingLicense)
inline

Definition at line 71 of file protection_common_types.h.

71 {
72 mIsParsed = true;
73 mDomains = parsedPublishingLicense->GetDomains();
74 mServerPublicCert = parsedPublishingLicense->GetServerPublicCert();
75 mContentId = parsedPublishingLicense->GetContentId();
76 mIssuerId = parsedPublishingLicense->GetIssuerId();
77 mDoubleKeyAlgorithm = parsedPublishingLicense->GetDoubleKeyAlgorithm();
78 mOwner = parsedPublishingLicense->GetOwner();
79 mConnectionInfo = parsedPublishingLicense->GetConnectionInfo();
80 mDescriptor = parsedPublishingLicense->GetDescriptor();
81 mReferralInfoUrl = parsedPublishingLicense->GetReferralInfoUrl();
82 mSignedApplicationData = parsedPublishingLicense->GetSignedApplicationData();
83 mIssuedTime = parsedPublishingLicense->GetIssuedTime();
84 mLabelInfo = parsedPublishingLicense->GetLabelInfo();
85 mEncryptedRightsData = parsedPublishingLicense->GetEncryptedRightsData();
86 }

The documentation for this class was generated from the following file: