SaslCredentialsInput.plain constructor

SaslCredentialsInput.plain({
  1. required String username,
  2. 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.

Implementation

factory SaslCredentialsInput.plain({required String username, required String password}) {
  return SaslCredentialsInput._({
    'mechanism': 'plain',
    'username': username,
    'password': password,
  });
}