XmrLicense

A parsed XMR license — the binary payload a PlayReady server returns inside its SOAP response.

The source bytes are kept: the licence's integrity CMAC covers everything before its signature object, and re-encoding a tree whose policy objects we deliberately do not model would not reproduce those bytes.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

The public key of the device this license was issued to, as 64 bytes of X‖Y.

Link copied to clipboard

True when the license splits its key material across an auxiliary key — "scalable" licenses.

Link copied to clipboard
Link copied to clipboard

Exactly the bytes this license was parsed from.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun contentKey(encryptionKey: EccKey): PlayreadyKey

Decrypt the content key using the device's encryption key.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
suspend fun verifyIntegrity(integrityKey: ByteArray)

Check the license's own AES-CMAC over everything preceding its signature object.