Microsoft Information Protection SDK - C++ 1.17
API Reference Documentation for C++
Loading...
Searching...
No Matches
LicenseRightsData Class Reference

The rights related information of the publishing license. More...

#include <license_rights_data.h>

Public Member Functions

 LicenseRightsData (const ProtectionType type, const std::vector< DirectoryObjectRights > &directoryObjectsRights, const std::chrono::time_point< std::chrono::system_clock > &contentValidUntil)
 LicenseRightsData constructor.
 
ProtectionType GetProtectionType () const
 Gets type of protection, whether it originated from protection SDK template or not.
 
const std::vector< DirectoryObjectRights > & GetDirectoryObjectsRights () const
 Gets the set of directory objects and the rights associated with them.
 
bool DoesContentExpire ()
 Checks if content has an expiration time or not.
 
const std::chrono::time_point< std::chrono::system_clock > GetContentValidUntil () const
 Gets protection expiration time.
 

Private Attributes

ProtectionType mType
 
std::vector< DirectoryObjectRightsmDirectoryObjectsRights
 
std::chrono::time_point< std::chrono::system_clock > mContentValidUntil
 

Detailed Description

The rights related information of the publishing license.

Constructor & Destructor Documentation

◆ LicenseRightsData()

LicenseRightsData::LicenseRightsData ( const ProtectionType type,
const std::vector< DirectoryObjectRights > & directoryObjectsRights,
const std::chrono::time_point< std::chrono::system_clock > & contentValidUntil )
inline

LicenseRightsData constructor.

Parameters
typeThe type of protection, whether it originated from protection SDK template or not
directoryObjectsRightsThe set of directory objects and the rights associated with them
contentValidUtilProtection expiration time

Member Function Documentation

◆ DoesContentExpire()

bool LicenseRightsData::DoesContentExpire ( )
inline

Checks if content has an expiration time or not.

Returns
True if content can expire, else false

◆ GetContentValidUntil()

const std::chrono::time_point< std::chrono::system_clock > LicenseRightsData::GetContentValidUntil ( ) const
inline

Gets protection expiration time.

Returns
Protection expiration time

◆ GetDirectoryObjectsRights()

const std::vector< DirectoryObjectRights > & LicenseRightsData::GetDirectoryObjectsRights ( ) const
inline

Gets the set of directory objects and the rights associated with them.

Returns
The set of directory objects and the rights associated with them

◆ GetProtectionType()

ProtectionType LicenseRightsData::GetProtectionType ( ) const
inline

Gets type of protection, whether it originated from protection SDK template or not.

Returns
Type of protection

Member Data Documentation

◆ mContentValidUntil

std::chrono::time_point<std::chrono::system_clock> LicenseRightsData::mContentValidUntil
private

◆ mDirectoryObjectsRights

std::vector<DirectoryObjectRights> LicenseRightsData::mDirectoryObjectsRights
private

◆ mType

ProtectionType LicenseRightsData::mType
private

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