StreamLinkConnectionFactory

Creates authenticated StreamLinkConnections to a Liberator.

Construct one via the invoke factory operators in the companion object, supplying the Liberator URL and a KeyMaster credential (a PrivateKey, a PEM InputStream, or a full IKeyMasterConfiguration). Each call to connect mints a KeyMaster token for a user and opens a fresh connection.

Parameters

liberator

the Liberator URL to connect to (e.g. rttp://host:port).

keymasterConfiguration

KeyMaster configuration used to sign authentication tokens.

objectMapper

Jackson mapper used to (de)serialise JSON channel and record payloads.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Opens a new StreamLinkConnection authenticated as username.