Beispiel #1
0
        public AuthTransaction(PopConnection connection, SaslClientMechanism authMechanism)
            : base(connection)
        {
            if (authMechanism == null)
            throw new ArgumentNullException("authMechanism");

              this.saslMechanism = authMechanism;
              this.requiredCapability = null; // do not check capability
              this.disposeMechanism = false;
        }
Beispiel #2
0
        public AuthTransaction(PopConnection connection, NetworkCredential credential)
            : base(connection)
        {
            if (credential == null)
            throw new ArgumentNullException("credential");

              this.credential = credential;
              this.requiredCapability = PopCapability.Sasl;
              this.disposeMechanism = true;
        }