# AP4_ProtectionKeyMap Class Reference

`#include <Ap4Protection.h>`

List of all members.

## Public Member Functions
| AP4_ProtectionKeyMap ()
| ~AP4_ProtectionKeyMap ()
AP4_Result | SetKey (AP4_UI32 track_id, const AP4_UI08 *key, const AP4_UI08 *iv=NULL)
AP4_Result | SetKeys (const AP4_ProtectionKeyMap &key_map)
AP4_Result | GetKeyAndIv (AP4_UI32 track_id, const AP4_UI08 *&key, const AP4_UI08 *&iv)
const AP4_UI08 * | GetKey (AP4_UI32 track_id) const
## Classes
class | KeyEntry

## Detailed Description

Definition at line 120 of file Ap4Protection.h.

## Constructor & Destructor Documentation

AP4_ProtectionKeyMap::AP4_ProtectionKeyMap | ( |  | ) |

AP4_ProtectionKeyMap::~AP4_ProtectionKeyMap | ( |  | ) |

## Member Function Documentation

AP4_Result AP4_ProtectionKeyMap::SetKey | ( | AP4_UI32 | track_id,
|  | const AP4_UI08 * | key,
|  | const AP4_UI08 * | iv = `NULL` |
| ) |  |  |

AP4_Result AP4_ProtectionKeyMap::SetKeys | ( | const AP4_ProtectionKeyMap & | key_map | ) |

AP4_Result AP4_ProtectionKeyMap::GetKeyAndIv | ( | AP4_UI32 | track_id,
|  | const AP4_UI08 *& | key,
|  | const AP4_UI08 *& | iv |
| ) |  |  |

const AP4_UI08* AP4_ProtectionKeyMap::GetKey | ( | AP4_UI32 | track_id | ) | const

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

- Ap4Protection.h