SaslCredentialsInput class
SASL credentials for authenticating during registration, built by a host to hand to ObbyClient.new or ObbyClient.fromConfig.
Distinct from the generated SaslCredentials, which decodes the same wire shape coming back out of a Config a host reads, rather than building one to send.
Constructors
- SaslCredentialsInput.external()
-
EXTERNAL: authenticates with the TLS client certificate already on the connection, so no password is needed at all.factory - SaslCredentialsInput.plain({required String username, required String password})
-
PLAIN: a username and password sent in the clear. Only safe once the connection is over TLS, since nothing else protects them.factory - SaslCredentialsInput.scram({required String username, required String password, required String nonce})
-
SCRAM-SHA-256: proves the password without ever putting it on the wire. Preferred over SaslCredentialsInput.plain wherever the server offers it.factory
Properties
- 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
-
toJson(
) → Map< String, dynamic> -
The wire shape the engine's
Credentialstype expects. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited