AuthenticationPolicy class final

Controls which operations require authentication.

Constructors

AuthenticationPolicy({bool requireForConnection = true, bool requireForRoomCreation = true, int? maxConnectionsPerUser, Duration authenticationTimeout = const Duration(seconds: 10)})
const

Properties

authenticationTimeout → Duration
Time allowed for protocol-level authentication after connecting.
final
hashCode → int
The hash code for this object.
no setterinherited
maxConnectionsPerUser → int?
Maximum simultaneous connections per authenticated user. null means unlimited.
final
requireForConnection → bool
Require protocol-level authentication before using the connection.
final
requireForRoomCreation → bool
Reject room creation by unauthenticated users.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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