Companion

object Companion

Functions

Link copied to clipboard

Creates a custom ConfigurableTokenSource that executes block to fetch the credentials.

Link copied to clipboard
fun fromEndpoint(url: URL, method: String = "POST", headers: Map<String, String> = emptyMap()): ConfigurableTokenSource

Creates a ConfigurableTokenSource that fetches from a given url using the standard token server format.

Link copied to clipboard
fun fromLiteral(serverUrl: String, participantToken: String): FixedTokenSource

Creates a FixedTokenSource that immediately returns with the supplied serverUrl and participantToken.

Link copied to clipboard
fun fromSandboxTokenServer(sandboxId: String, options: SandboxTokenServerOptions = SandboxTokenServerOptions()): ConfigurableTokenSource

Creates a ConfigurableTokenSource that fetches from a sandbox token server for credentials, which supports quick prototyping/getting started types of use cases.