HubConfig class

Configuration for an OmnyShellHub.

Constructors

HubConfig({required SecurityContext securityContext, required Authenticator authenticator, Authorizer? authorizer, Uint8List? identityCertificate, Object host = '0.0.0.0', int port = 8443, Duration heartbeatTimeout = const Duration(seconds: 30), Clock clock = const SystemClock(), void logger(String message)?})
Creates a hub configuration.

Properties

authenticator Authenticator
Authenticates node and client credentials.
final
authorizer Authorizer
Authorizes session opens. Defaults to a fail-closed RoleBasedAuthorizer.
final
clock Clock
The clock (overridable in tests).
final
hashCode int
The hash code for this object.
no setterinherited
heartbeatTimeout Duration
How long a node may go silent before being declared offline.
final
host Object
The bind address (a String host or an InternetAddress).
final
identityCertificate Uint8List?
The leaf TLS certificate (PEM or DER bytes) used to derive this hub's deterministic UID from its public key (SPKI). When omitted the hub runs without a computed UID.
final
logger → void Function(String message)?
Optional diagnostic logger.
final
port int
The TCP port to listen on (0 binds an ephemeral port).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
securityContext SecurityContext
The mandatory TLS security context (server certificate + key).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited