Beispiel #1
0
        private ISaslMechanism CreateSaslMechanism()
        {
            ISaslMechanism mechanism = null;

            if (this.Supports(ServerFeatures.SaslScramSha1))
            {
                mechanism = new SaslScramSha1Mechanism(this.ConnectionString);
            }
            else if (this.Supports(ServerFeatures.SaslDigestMD5))
            {
                mechanism = new SaslDigestMechanism(this.ConnectionString);
            }
            else if (this.Supports(ServerFeatures.SaslPlain))
            {
                mechanism = new SaslPlainMechanism(this.ConnectionString);
            }

            return(mechanism);
        }
Beispiel #2
0
 public SaslPlainProfile(SaslPlainMechanism mechanism)
 {
     this.mechanism = mechanism;
 }