DefaultAuthenticator class
- Inheritance
-
- Object
- Authenticator
- DefaultAuthenticator
Constructors
-
DefaultAuthenticator({Map<
String, AuthenticationCommandHandler> handlers = const {}, Logger? logger})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
finalinherited
- 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 andnull
otherwise.override -
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