PlayreadyDevice

A provisioned PlayReady device — the contents of a .prd file.

A device is a certificate chain whose leaf attests to two key pairs: signingKey, which signs license challenges, and encryptionKey, to which the server encrypts content-key material. A v3 device also keeps the groupKey that issued the leaf, which is what lets it be reprovisioned.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The issuing group key. Absent in a v2 device, which therefore cannot be reprovisioned.

Link copied to clipboard

A filesystem-safe name for this device, as manufacturer_model_slNNNN.

Link copied to clipboard

150, 2000 or 3000, read from the chain's leaf.

Link copied to clipboard

Functions

Link copied to clipboard
fun dump(path: String, fileSystem: FileSystem, version: Int = CURRENT_VERSION)
fun dump(path: Path, fileSystem: FileSystem, version: Int = CURRENT_VERSION)

Write this device to path, creating parent directories.

Link copied to clipboard
fun dumps(version: Int = CURRENT_VERSION): ByteArray

Serialize back to a .prd blob.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String