DrmTokenProvider

fun interface DrmTokenProvider

Supplies a DRM license token. Called on every license request — including renewals — so implementations must return a currently valid token each time (fetch it, refresh auth, etc.). Never cache a token beyond its lifetime; the SDK never caches it at all.

Invoked on a background thread with an 8s timeout and retries.

Functions

Link copied to clipboard
abstract suspend fun getToken(request: DrmTokenRequest): String