AuthPolicy class sealed
Which identity a request may be attributed to, and from when.
- Implementers
Constructors
- AuthPolicy.allow(Account account)
-
Starts anonymous and moves to a connection bound to
accountonly once a relay refused the request without an identity.constfactory - AuthPolicy.never()
-
Stays on the anonymous connection and never sends AUTH. A relay that
refuses the request without an identity simply does not serve it.
constfactory
- AuthPolicy.require(Account account)
-
Goes out on a connection bound to
accountfrom the start; it is never sent on the anonymous one.constfactory
Properties
- account → Account?
-
identity this may authenticate as, null when it never authenticates
no setter
- canonical → String
-
stable representation, for logs and for telling two requests apart
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
fromDeprecatedAccounts(
List< Account> ? accounts) → AuthPolicy? -
The policy the deprecated
authenticateAslist stands for: the first account it names that can sign, and nobody when none can.