getReferralHandler() private method

Returns an object that can process authentication for automatic referral handling. It may be null.
private getReferralHandler ( ) : LdapReferralHandler
return LdapReferralHandler
示例#1
0
        /// <summary>
        ///     Constructs an LdapSearchConstraints object initialized with values
        ///     from an existing constraints object (LdapConstraints
        ///     or LdapSearchConstraints).
        /// </summary>
        public LdapSearchConstraints(LdapConstraints cons)
            : base(cons.TimeLimit, cons.ReferralFollowing, cons.getReferralHandler(), cons.HopLimit)
        {
            var lsc = cons.GetControls();

            if (lsc != null)
            {
                var generatedVar = new LdapControl[lsc.Length];
                lsc.CopyTo(generatedVar, 0);
                SetControls(generatedVar);
            }

            var lp = cons.Properties;

            if (lp != null)
            {
                Properties = (Hashtable)lp.Clone();
            }

            if (cons is LdapSearchConstraints)
            {
                var scons = (LdapSearchConstraints)cons;
                ServerTimeLimit = scons.ServerTimeLimit;
                Dereference     = scons.Dereference;
                MaxResults      = scons.MaxResults;
                BatchSize       = scons.BatchSize;
            }
        }
示例#2
0
        /// <summary> Constructs an LdapSearchConstraints object initialized with values
        /// from an existing constraints object (LdapConstraints
        /// or LdapSearchConstraints).
        /// </summary>
        public LdapSearchConstraints(LdapConstraints cons)
            : base(cons.TimeLimit, cons.ReferralFollowing, cons.getReferralHandler(), cons.HopLimit)
        {
            InitBlock();
            LdapControl[] lsc = cons.getControls();
            if (lsc != null)
            {
                LdapControl[] generated_var = new LdapControl[lsc.Length];
                lsc.CopyTo(generated_var, 0);
                base.setControls(generated_var);
            }
            Hashtable lp = cons.Properties;

            if (lp != null)
            {
                base.Properties = (Hashtable)lp.Clone();
            }

            if (cons is LdapSearchConstraints)
            {
                LdapSearchConstraints scons = (LdapSearchConstraints)cons;
                this.serverTimeLimit = scons.ServerTimeLimit;
                this.dereference     = scons.Dereference;
                this.maxResults      = scons.MaxResults;
                this.batchSize       = scons.BatchSize;
            }
        }
        /// <summary>
        ///     Constructs an LdapSearchConstraints object initialized with values
        ///     from an existing constraints object (LdapConstraints
        ///     or LdapSearchConstraints).
        /// </summary>
        public LdapSearchConstraints(LdapConstraints cons)
            : base(cons.TimeLimit, cons.ReferralFollowing, cons.getReferralHandler(), cons.HopLimit)
        {
            InitBlock();
            var lsc = cons.getControls();

            if (lsc != null)
            {
                var generated_var = new LdapControl[lsc.Length];
                lsc.CopyTo(generated_var, 0);
                setControls(generated_var);
            }
            var lp = cons.Properties;

            if (lp != null)
            {
                Properties = (Hashtable)lp.Clone();
            }

            if (cons is LdapSearchConstraints)
            {
                var scons = (LdapSearchConstraints)cons;
                serverTimeLimit = scons.ServerTimeLimit;
                dereference     = scons.Dereference;
                maxResults      = scons.MaxResults;
                batchSize       = scons.BatchSize;
            }
            // Get a unique connection name for debug
        }
        /// <summary> Constructs an LdapSearchConstraints object initialized with values
        /// from an existing constraints object (LdapConstraints
        /// or LdapSearchConstraints).
        /// </summary>
        public LdapSearchConstraints(LdapConstraints cons)
            : base(cons.TimeLimit, cons.ReferralFollowing, cons.getReferralHandler(), cons.HopLimit)
        {
            InitBlock();
            LdapControl[] lsc = cons.getControls();
            if (lsc != null)
            {
                LdapControl[] generated_var = new LdapControl[lsc.Length];
                lsc.CopyTo(generated_var, 0);
                base.setControls(generated_var);
            }
            System.Collections.Hashtable lp = cons.Properties;
            if (lp != null)
            {
                base.Properties = (System.Collections.Hashtable) lp.Clone();
            }

            if (cons is LdapSearchConstraints)
            {
                LdapSearchConstraints scons = (LdapSearchConstraints) cons;
                this.serverTimeLimit = scons.ServerTimeLimit;
                this.dereference = scons.Dereference;
                this.maxResults = scons.MaxResults;
                this.batchSize = scons.BatchSize;
            }
            // Get a unique connection name for debug
            return ;
        }