AkamaiTokenProvider

class AkamaiTokenProvider(okHttpClient: OkHttpClient = PillarboxOkHttp())

The AkamaiTokenProvider is responsible for fetching an Akamai token from TOKEN_SERVICE_URL and appending it to URIs.

Parameters

okHttpClient

The OkHttp client used to make requests to the token service. Defaults to a PillarboxOkHttp instance.

Constructors

Link copied to clipboard
constructor(okHttpClient: OkHttpClient = PillarboxOkHttp())

Functions

Link copied to clipboard
fun tokenizeUri(uri: Uri): Uri

Requests and appends an Akamai token to the provided URI.