InMemoryConfigurationContainer

class InMemoryConfigurationContainer(initialHostname: String? = null, initialAuthToken: AuthToken? = null, initialSecurityStrategy: SecurityStrategy = SecurityStrategy.PlatformTrust) : HueConfigurationContainer

Implements a configuration container by storing config in a thread-safe memory storage structure.

Parameters

initialAuthToken

Optional auth token to start with

Constructors

Link copied to clipboard
fun InMemoryConfigurationContainer(initialHostname: String? = null, initialAuthToken: AuthToken? = null, initialSecurityStrategy: SecurityStrategy = SecurityStrategy.PlatformTrust)

Functions

Link copied to clipboard
open suspend override fun setAuthToken(token: AuthToken?)

Set the application key/token to use when communicating with the Hue bridge.

Link copied to clipboard
open suspend override fun setHostname(hostname: String?)

he Hue IP or hostname to communicate with. eg "192.168.1.5"

Link copied to clipboard
open suspend override fun setSecurityStrategy(securityStrategy: SecurityStrategy)

TLS configuration strategy.

Properties

Link copied to clipboard
open override val authToken: StateFlow<AuthToken?>

Auth token used in authenticated requests to the hue bridge

Link copied to clipboard
open override val hostname: StateFlow<String?>

The Hue IP or hostname to communicate with.

Link copied to clipboard
open override val securityStrategy: StateFlow<SecurityStrategy>

TLS configuration strategy.