RouteToken class

Constructors

RouteToken({int expiresAt = 0, String host = '', int httpsPort = 0, int tlsPort = 0})
RouteToken.fromJson(Map<String, dynamic> json)
factory
RouteToken.fromReader(TeleportObjectReader reader)
factory
RouteToken.fromTeleport(Uint8List data)
factory

Properties

expiresAt int
Epoch seconds after which the gateway refuses the token. Always set — this one leaves the machine, and unlike the ConnectToken it authorizes a dial target rather than a session, so it is minted short-lived.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
host String
The ikon server's hostname, as the gateway will dial and TLS-validate it. A fleet instance presents the platform wildcard certificate, so this must be the real FQDN and never an address.
getter/setter pair
httpsPort int
Both upstream ports, because the two legs land on different ones: /connect is HTTPS to HttpsPort, and the channel is a raw TCP socket to TlsPort. HostAgent allocates them separately from one range, so neither can be derived from the other.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tlsPort int
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
toTeleport() Uint8List
writeTo(TeleportObjectWriter scope) → void

Operators

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

Constants

fieldIdExpiresAt → const int
fieldIdHost → const int
fieldIdHttpsPort → const int
fieldIdTlsPort → const int
teleportVersion → const int