SaslCredentialsInput.scram constructor
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,
});
}