RDK Documentation (Open Sourced RDK Components)
|
To hold DRM key, license request etc. More...
#include <AampDrmData.h>
Public Member Functions | |
DrmData () | |
Default constructor for DrmData. NULL initialize data and dataLength. More... | |
DrmData (unsigned char *data, int dataLength) | |
Constructor for DrmData allocate memory and initialize data and dataLength with given params. More... | |
DrmData (const DrmData &)=delete | |
Copy constructor disabled. More... | |
DrmData & | operator= (const DrmData &)=delete |
assignment operator disabled More... | |
~DrmData () | |
Distructor for DrmData. Free memory (if any) allocated for data. | |
const std::string & | getData () |
Getter method for data. More... | |
int | getDataLength () |
Getter method for dataLength. More... | |
void | setData (unsigned char *data, int dataLength) |
Updates DrmData with given data. More... | |
void | addData (unsigned char *data, int dataLength) |
Appends DrmData with given data. More... | |
Private Attributes | |
std::string | data |
To hold DRM key, license request etc.
Definition at line 32 of file AampDrmData.h.
DrmData::DrmData | ( | ) |
Default constructor for DrmData. NULL initialize data and dataLength.
[in] | data | - pointer to data to be copied. |
[in] | dataLength | - length of data |
Definition at line 44 of file AampDRMutils.cpp.
DrmData::DrmData | ( | unsigned char * | data, |
int | dataLength | ||
) |
Constructor for DrmData allocate memory and initialize data and dataLength with given params.
Definition at line 54 of file AampDRMutils.cpp.
|
delete |
Copy constructor disabled.
const std::string & DrmData::getData | ( | ) |
Getter method for data.
Definition at line 75 of file AampDRMutils.cpp.
int DrmData::getDataLength | ( | ) |
Getter method for dataLength.
Definition at line 83 of file AampDRMutils.cpp.
void DrmData::setData | ( | unsigned char * | data, |
int | dataLength | ||
) |
Updates DrmData with given data.
[in] | data | - Pointer to data to be set. |
[in] | dataLength | - length of data. |
Definition at line 91 of file AampDRMutils.cpp.
void DrmData::addData | ( | unsigned char * | data, |
int | dataLength | ||
) |
Appends DrmData with given data.
[in] | data | - Pointer to data to be appended. |
[in] | dataLength | - length of data. |
Definition at line 103 of file AampDRMutils.cpp.
|
private |
License Data
Definition at line 35 of file AampDrmData.h.