ScramAuthentication constructor

ScramAuthentication(
  1. String secret, {
  2. dynamic challengeTimeout,
})

Initialized the instance with the secret and an optional challengeTimeout which will cause the authentication process to fail if the server responce took too long

Implementation

ScramAuthentication(String secret, {challengeTimeout}) {
  if (challengeTimeout != null) {
    _challengeTimeout = challengeTimeout;
  }
  _secret = Saslprep.saslprep(secret);
}