Certificate

A single PlayReady bcert certificate.

The bytes it was parsed from are kept verbatim: a certificate's signature covers its own certificateLength-byte prefix, and re-encoding attributes we do not fully model would change those bytes and break verification.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Length of the prefix the signature attribute covers.

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

Seconds since the Unix epoch; 0xFFFFFFFF means "never".

Link copied to clipboard

The public key of whoever signed this certificate.

Link copied to clipboard
val name: String?

A human-readable device name, or null when the certificate declares no manufacturer.

Link copied to clipboard

Exactly the bytes this certificate occupied.

Link copied to clipboard

150, 2000 or 3000 on a real device.

Link copied to clipboard
Link copied to clipboard

Functions

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

Every feature the certificate declares.

Link copied to clipboard
Link copied to clipboard

Every key the certificate lists, in declaration order.

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

Verify this certificate's own signature, and its extended-data signature when present.