RDK Documentation (Open Sourced RDK Components)
DrmData Class Reference

To hold DRM key, license request etc. More...

#include <AampDrmData.h>

Collaboration diagram for DrmData:
Collaboration graph

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...
 
DrmDataoperator= (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
 

yes

To hold DRM key, license request etc.

Definition at line 32 of file AampDrmData.h.

Constructor & Destructor Documentation

◆ DrmData() [1/3]

DrmData::DrmData ( )

Default constructor for DrmData. NULL initialize data and dataLength.

Parameters
[in]data- pointer to data to be copied.
[in]dataLength- length of data

Definition at line 44 of file AampDRMutils.cpp.

◆ DrmData() [2/3]

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.

◆ DrmData() [3/3]

DrmData::DrmData ( const DrmData )
delete

Copy constructor disabled.

Member Function Documentation

◆ operator=()

DrmData& DrmData::operator= ( const DrmData )
delete

assignment operator disabled

◆ getData()

const std::string & DrmData::getData ( )

Getter method for data.

Returns
Returns pointer to data.

Definition at line 75 of file AampDRMutils.cpp.

◆ getDataLength()

int DrmData::getDataLength ( )

Getter method for dataLength.

Returns
Returns dataLength.

Definition at line 83 of file AampDRMutils.cpp.

◆ setData()

void DrmData::setData ( unsigned char *  data,
int  dataLength 
)

Updates DrmData with given data.

Parameters
[in]data- Pointer to data to be set.
[in]dataLength- length of data.
Returns
void.

Definition at line 91 of file AampDRMutils.cpp.

◆ addData()

void DrmData::addData ( unsigned char *  data,
int  dataLength 
)

Appends DrmData with given data.

Parameters
[in]data- Pointer to data to be appended.
[in]dataLength- length of data.
Returns
void.

Definition at line 103 of file AampDRMutils.cpp.

Field Documentation

◆ data

std::string DrmData::data
private

License Data

Definition at line 35 of file AampDrmData.h.


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