unwrapEntitledKeys

suspend fun unwrapEntitledKeys(entitlementKeys: List<Key>, entitledPssh: PSSH): List<Key>

Unwrap the content keys carried by an ENTITLED_KEY PSSH using entitlementKeys.

The session-scoped getKeysFromEntitlement delegates here; use this directly when the entitlement keys came from somewhere other than an open session.

Throws

if the PSSH carries no entitled keys

if an entitled key is missing a required field

if no entitlement key matches an entitled key