SaslCredentialsInput.scram constructor

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

Implementation

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