CertificateChain

A PlayReady bcert certificate chain, leaf first.

This is the content of a bgroupcert.dat, of the group-certificate slot inside a .prd, and of the SigningCertificateChain a license server returns.

Chains are immutable: prepend and removeLeaf return new chains rather than editing in place, so a chain that has already been verified cannot be changed out from under that result.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val count: Int
Link copied to clipboard
val flags: Long
Link copied to clipboard
val name: String?

The leaf's device name.

Link copied to clipboard

The leaf's security level: 150, 2000 or 3000 on a real device.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun get(index: Int): Certificate
Link copied to clipboard
Link copied to clipboard

The chain with its leaf removed — how a provisioned device is turned back into a group certificate.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
suspend fun verify(checkExpiry: Boolean = false, expectedLeafType: BCertType? = null, nowSeconds: Long = 0)

Verify the chain end to end.