Authenticator class abstract

Abstract class to provide authentication against incoming connections. The authenticator is responsible for determining what type of WebSocketCommunicator the incoming socket represenst, if any.

See also:

Implementers

Constructors

Authenticator({Logger? logger})

Properties

hashCode int
The hash code for this object.
no setterinherited
logger → Logger
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authenticate({required Stream<DeviceCommand> commandStream, required WebSocket socket}) Future<WebSocketCommunicator?>
Authenticates the current communicator. The Future will resolve with a valid WebSocketCommunicator if the authentication is successful and null otherwise.
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