ScramCredential constructor

ScramCredential({
  1. String? secret,
  2. String? storedKey,
  3. String? serverKey,
  4. String? salt,
  5. int? iterations,
  6. int? memory,
  7. String? kdf,
  8. String? role,
  9. String? provider,
  10. Map<String, Object?>? authExtra,
})

Implementation

ScramCredential({
  this.secret,
  this.storedKey,
  this.serverKey,
  this.salt,
  this.iterations,
  this.memory,
  this.kdf,
  this.role,
  this.provider,
  this.authExtra,
}) : assert(
       secret != null || (storedKey != null && storedKey.isNotEmpty),
       'Provide either secret or storedKey for SCRAM credentials.',
     );