/// <summary>
        /// Constructor
        /// </summary>
        /// <param name="context">
        /// a SecurityContext object that specifies the security provider.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// thrown when context is null.
        /// </exception>
        public AdtsLdapSaslSecurityLayer(SecurityContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            this.securityContext = context;
            this.receivedBuffer  = new AdtsLdapSecurityBuffer();
            this.signatureLength = SIGNATURE_LENGTH_INITIALIZE_VALUE;
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="context">
        /// a SecurityContext object that specifies the security provider.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// thrown when context is null.
        /// </exception>
        public AdtsLdapSaslSecurityLayer(SecurityContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            this.securityContext = context;
            this.receivedBuffer = new AdtsLdapSecurityBuffer();
            this.signatureLength = SIGNATURE_LENGTH_INITIALIZE_VALUE;
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="transport">
        /// an AdtsLdapSslTlsSecurityLayer object that provides the security layer.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// thrown when security is null.
        /// </exception>
        public AdtsLdapSecurityStream(AdtsLdapSslTlsSecurityLayer security)
        {
            if (security == null)
            {
                throw new ArgumentNullException("security");
            }

            this.security = security;
            this.receivedBuffer = new AdtsLdapSecurityBuffer();
            this.sentBuffer = new AdtsLdapSecurityBuffer();
            this.receivedEvent = new ManualResetEvent(false);
            this.lockObjectForReadWriteThread = new object();
            this.lockObjectForReadThreads = new object();
        }
Example #4
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="transport">
        /// an AdtsLdapSslTlsSecurityLayer object that provides the security layer.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// thrown when security is null.
        /// </exception>
        public AdtsLdapSecurityStream(AdtsLdapSslTlsSecurityLayer security)
        {
            if (security == null)
            {
                throw new ArgumentNullException("security");
            }

            this.security       = security;
            this.receivedBuffer = new AdtsLdapSecurityBuffer();
            this.sentBuffer     = new AdtsLdapSecurityBuffer();
            this.receivedEvent  = new ManualResetEvent(false);
            this.lockObjectForReadWriteThread = new object();
            this.lockObjectForReadThreads     = new object();
        }