/// <summary> /// Constructor. /// </summary> /// <param name="transport"> /// an AdtsLdapClient object that provides the transport for SslAuthenticate. /// </param> /// <exception cref="ArgumentNullException"> /// thrown when transport is null. /// </exception> public AdtsLdapSslTlsSecurityLayer(AdtsLdapClient transport) { if (transport == null) { throw new ArgumentNullException("transport"); } this.clientTransport = transport; this.streamProxy = new AdtsLdapSecurityStream(this); this.sslStream = new SslStream(this.streamProxy); }
/// <summary> /// Constructor /// </summary> /// <param name="adtsLdapClient"> /// an AdtsLdapClient object that provides the transport/packets/security services. /// </param> internal AdtsLdapClientDecoder(AdtsLdapClient adtsLdapClient) { this.client = adtsLdapClient; if (this.client.Context.ClientVersion == AdtsLdapVersion.V2) { this.decoder = new AdtsLdapV2Decoder(); } else { this.decoder = new AdtsLdapV3Decoder(); } }