/// <summary> /// Constructor. /// </summary> /// <param name="transport"> /// an AdtsLdapServer object that provides the transport for SslAuthenticate. /// </param> /// <param name="context"> /// an AdtsLdapContext object that provides the transport context for SslAuthenticate. /// </param> /// <exception cref="ArgumentNullException"> /// thrown when transport is null. /// </exception> /// <exception cref="ArgumentNullException"> /// thrown when context is null. /// </exception> public AdtsLdapSslTlsSecurityLayer(AdtsLdapServer transport, AdtsLdapContext context) { if (transport == null) { throw new ArgumentNullException("transport"); } if (context == null) { throw new ArgumentNullException("context"); } this.serverTransport = transport; this.serverContext = context; this.streamProxy = new AdtsLdapSecurityStream(this); this.sslStream = new SslStream(this.streamProxy); }
/// <summary> /// Constructor /// </summary> /// <param name="ldapServer"> /// an AdtsLdapServer object that indicates the server. /// </param> internal AdtsLdapServerDecoder(AdtsLdapServer ldapServer) { this.server = ldapServer; this.decoderv2 = new AdtsLdapV2Decoder(); this.decoderv3 = new AdtsLdapV3Decoder(); }
/// <summary> /// Constructor. /// </summary> /// <param name="transport"> /// an AdtsLdapServer object that provides the transport for SslAuthenticate. /// </param> /// <param name="context"> /// an AdtsLdapContext object that provides the transport context for SslAuthenticate. /// </param> /// <exception cref="ArgumentNullException"> /// thrown when transport is null. /// </exception> /// <exception cref="ArgumentNullException"> /// thrown when context is null. /// </exception> public AdtsLdapSslTlsSecurityLayer(AdtsLdapServer transport, AdtsLdapContext context) { if (transport == null) { throw new ArgumentNullException("transport"); } if (context == null) { throw new ArgumentNullException("context"); } this.serverTransport = transport; this.serverContext = context; this.streamProxy = new AdtsLdapSecurityStream(this); this.sslStream = new SslStream(this.streamProxy); }
/// <summary> /// Constructor /// </summary> /// <param name="ldapServer"> /// an AdtsLdapServer object that indicates the server. /// </param> internal AdtsLdapServerDecoder(AdtsLdapServer ldapServer) { this.server = ldapServer; this.decoderv2 = new AdtsLdapV2Decoder(); this.decoderv3 = new AdtsLdapV3Decoder(); }