ScramAuthentication constructor
ScramAuthentication(
- String secret, {
- 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);
}