parseLicense

open suspend override fun parseLicense(sessionId: ByteString, licenseMessage: ByteArray)

Parse and verify a Widevine license response for the provided sessionId. This consumes the previously stored request context created by getLicenseChallenge, decrypts contained keys and stores them on the session.

Throws

if the session is unknown

if no license request was made for this session

if the message is empty, is an ERROR_RESPONSE, or is not a LICENSE

if parsing fails

if MAC verification fails