1 <?xml version="1.0" encoding="utf-8"?><doc>
3 <name>System.Net.Security</name>
6 <member name="T:System.Net.Security.SslStream">
7 <summary>Provides a stream used for client-server communication that uses the Secure Socket Layer (SSL) security protocol to authenticate the server and optionally the client.</summary>
9 <member name="M:System.Net.Security.SslStream.#ctor(System.IO.Stream)">
10 <summary>Initializes a new instance of the <see cref="T:System.Net.Security.SslStream"></see> class using the specified <see cref="T:System.IO.Stream"></see>.</summary>
11 <param name="innerStream">A <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.SslStream"></see> for sending and receiving data.</param>
12 <exception cref="T:System.ArgumentException"><paramref name="innerStream">innerStream</paramref> is not readable.
14 <paramref name="innerStream">innerStream</paramref> is not writable.</exception>
15 <exception cref="T:System.ArgumentNullException"><paramref name="innerStream">innerStream</paramref> is <see langword="null"></see>.
17 <paramref name="innerStream">innerStream</paramref> is equal to <see cref="System.IO.Stream.Null"></see>.</exception>
19 <member name="M:System.Net.Security.SslStream.#ctor(System.IO.Stream,System.Boolean)">
20 <summary>Initializes a new instance of the <see cref="T:System.Net.Security.SslStream"></see> class using the specified <see cref="T:System.IO.Stream"></see> and stream closure behavior.</summary>
21 <param name="innerStream">A <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.SslStream"></see> for sending and receiving data.</param>
22 <param name="leaveInnerStreamOpen">A Boolean value that indicates the closure behavior of the <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.SslStream"></see> for sending and receiving data. This parameter indicates if the inner stream is left open.</param>
23 <exception cref="T:System.ArgumentException"><paramref name="innerStream">innerStream</paramref> is not readable.
25 <paramref name="innerStream">innerStream</paramref> is not writable.</exception>
26 <exception cref="T:System.ArgumentNullException"><paramref name="innerStream">innerStream</paramref> is <see langword="null"></see>.
28 <paramref name="innerStream">innerStream</paramref> is equal to <see cref="System.IO.Stream.Null"></see>.</exception>
30 <member name="M:System.Net.Security.SslStream.#ctor(System.IO.Stream,System.Boolean,System.Net.Security.RemoteCertificateValidationCallback)">
31 <summary>Initializes a new instance of the <see cref="T:System.Net.Security.SslStream"></see> class using the specified <see cref="T:System.IO.Stream"></see>, stream closure behavior and certificate validation delegate.</summary>
32 <param name="innerStream">A <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.SslStream"></see> for sending and receiving data.</param>
33 <param name="leaveInnerStreamOpen">A Boolean value that indicates the closure behavior of the <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.SslStream"></see> for sending and receiving data. This parameter indicates if the inner stream is left open.</param>
34 <param name="userCertificateValidationCallback">A <see cref="T:System.Net.Security.RemoteCertificateValidationCallback"></see> delegate responsible for validating the certificate supplied by the remote party.</param>
35 <exception cref="T:System.ArgumentException"><paramref name="innerStream">innerStream</paramref> is not readable.
37 <paramref name="innerStream">innerStream</paramref> is not writable.</exception>
38 <exception cref="T:System.ArgumentNullException"><paramref name="innerStream">innerStream</paramref> is <see langword="null"></see>.
40 <paramref name="innerStream">innerStream</paramref> is equal to <see cref="System.IO.Stream.Null"></see>.</exception>
42 <member name="M:System.Net.Security.SslStream.#ctor(System.IO.Stream,System.Boolean,System.Net.Security.RemoteCertificateValidationCallback,System.Net.Security.LocalCertificateSelectionCallback)">
43 <summary>Initializes a new instance of the <see cref="T:System.Net.Security.SslStream"></see> class using the specified <see cref="T:System.IO.Stream"></see>, stream closure behavior, certificate validation delegate and certificate selection delegate.</summary>
44 <param name="innerStream">A <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.SslStream"></see> for sending and receiving data.</param>
45 <param name="leaveInnerStreamOpen">A Boolean value that indicates the closure behavior of the <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.SslStream"></see> for sending and receiving data. This parameter indicates if the inner stream is left open.</param>
46 <param name="userCertificateValidationCallback">A <see cref="T:System.Net.Security.RemoteCertificateValidationCallback"></see> delegate responsible for validating the certificate supplied by the remote party.</param>
47 <param name="userCertificateSelectionCallback">A <see cref="T:System.Net.Security.LocalCertificateSelectionCallback"></see> delegate responsible for selecting the certificate used for authentication.</param>
48 <exception cref="T:System.ArgumentException"><paramref name="innerStream">innerStream</paramref> is not readable.
50 <paramref name="innerStream">innerStream</paramref> is not writable.</exception>
51 <exception cref="T:System.ArgumentNullException"><paramref name="innerStream">innerStream</paramref> is <see langword="null"></see>.
53 <paramref name="innerStream">innerStream</paramref> is equal to <see cref="System.IO.Stream.Null"></see>.</exception>
55 <member name="M:System.Net.Security.SslStream.#ctor(System.IO.Stream,System.Boolean,System.Net.Security.RemoteCertificateValidationCallback,System.Net.Security.LocalCertificateSelectionCallback,System.Net.Security.EncryptionPolicy)">
56 <summary>Initializes a new instance of the <see cref="T:System.Net.Security.SslStream"></see> class using the specified <see cref="T:System.IO.Stream"></see></summary>
57 <param name="innerStream">A <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.SslStream"></see> for sending and receiving data.</param>
58 <param name="leaveInnerStreamOpen">A Boolean value that indicates the closure behavior of the <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.SslStream"></see> for sending and receiving data. This parameter indicates if the inner stream is left open.</param>
59 <param name="userCertificateValidationCallback">A <see cref="T:System.Net.Security.RemoteCertificateValidationCallback"></see> delegate responsible for validating the certificate supplied by the remote party.</param>
60 <param name="userCertificateSelectionCallback">A <see cref="T:System.Net.Security.LocalCertificateSelectionCallback"></see> delegate responsible for selecting the certificate used for authentication.</param>
61 <param name="encryptionPolicy">The <see cref="T:System.Net.Security.EncryptionPolicy"></see> to use.</param>
62 <exception cref="T:System.ArgumentException"><paramref name="innerStream">innerStream</paramref> is not readable.
64 <paramref name="innerStream">innerStream</paramref> is not writable.
66 <paramref name="encryptionPolicy">encryptionPolicy</paramref> is not valid.</exception>
67 <exception cref="T:System.ArgumentNullException"><paramref name="innerStream">innerStream</paramref> is <see langword="null"></see>.
69 <paramref name="innerStream">innerStream</paramref> is equal to <see cref="System.IO.Stream.Null"></see>.</exception>
71 <member name="M:System.Net.Security.SslStream.AuthenticateAsClient(System.String)">
72 <summary>Called by clients to authenticate the server and optionally the client in a client-server connection.</summary>
73 <param name="targetHost">The name of the server that shares this <see cref="T:System.Net.Security.SslStream"></see>.</param>
74 <exception cref="T:System.ArgumentNullException"><paramref name="targetHost">targetHost</paramref> is <see langword="null"></see>.</exception>
75 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
76 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
78 Server authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
80 Authentication is already in progress.</exception>
81 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
83 <member name="M:System.Net.Security.SslStream.AuthenticateAsClient(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Boolean)">
84 <summary>Called by clients to authenticate the server and optionally the client in a client-server connection. The authentication process uses the specified certificate collection, and the system default SSL protocol.</summary>
85 <param name="targetHost">The name of the server that will share this <see cref="T:System.Net.Security.SslStream"></see>.</param>
86 <param name="clientCertificates">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection"></see> that contains client certificates.</param>
87 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
89 <member name="M:System.Net.Security.SslStream.AuthenticateAsClient(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Security.Authentication.SslProtocols,System.Boolean)">
90 <summary>Called by clients to authenticate the server and optionally the client in a client-server connection. The authentication process uses the specified certificate collection and SSL protocol.</summary>
91 <param name="targetHost">The name of the server that will share this <see cref="T:System.Net.Security.SslStream"></see>.</param>
92 <param name="clientCertificates">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection"></see> that contains client certificates.</param>
93 <param name="enabledSslProtocols">The <see cref="T:System.Security.Authentication.SslProtocols"></see> value that represents the protocol used for authentication.</param>
94 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
96 <member name="M:System.Net.Security.SslStream.AuthenticateAsClientAsync(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Security.Authentication.SslProtocols,System.Boolean)">
97 <summary>Called by clients to authenticate the server and optionally the client in a client-server connection as an asynchronous operation. The authentication process uses the specified certificate collection and SSL protocol.</summary>
98 <param name="targetHost">The name of the server that will share this <see cref="T:System.Net.Security.SslStream"></see>.</param>
99 <param name="clientCertificates">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection"></see> that contains client certificates.</param>
100 <param name="enabledSslProtocols">The <see cref="T:System.Security.Authentication.SslProtocols"></see> value that represents the protocol used for authentication.</param>
101 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
102 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
103 The task object representing the asynchronous operation.</returns>
105 <member name="M:System.Net.Security.SslStream.AuthenticateAsClientAsync(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Boolean)">
106 <summary>Called by clients to authenticate the server and optionally the client in a client-server connection as an asynchronous operation. The authentication process uses the specified certificate collection and the system default SSL protocol.</summary>
107 <param name="targetHost">The name of the server that will share this <see cref="T:System.Net.Security.SslStream"></see>.</param>
108 <param name="clientCertificates">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection"></see> that contains client certificates.</param>
109 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
110 <returns>The task object representing the asynchronous operation.</returns>
112 <member name="M:System.Net.Security.SslStream.AuthenticateAsClientAsync(System.String)">
113 <summary>Called by clients to authenticate the server and optionally the client in a client-server connection as an asynchronous operation.</summary>
114 <param name="targetHost">The name of the server that shares this <see cref="T:System.Net.Security.SslStream"></see>.</param>
115 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
116 The task object representing the asynchronous operation.</returns>
117 <exception cref="T:System.ArgumentNullException"><paramref name="targetHost">targetHost</paramref> is <see langword="null"></see>.</exception>
118 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
119 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
121 Server authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
123 Authentication is already in progress.</exception>
124 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
126 <member name="M:System.Net.Security.SslStream.AuthenticateAsClientAsync(System.Net.Security.SslClientAuthenticationOptions,System.Threading.CancellationToken)">
127 <param name="sslClientAuthenticationOptions"></param>
128 <param name="cancellationToken"></param>
131 <member name="M:System.Net.Security.SslStream.AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate)">
132 <summary>Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificate.</summary>
133 <param name="serverCertificate">The certificate used to authenticate the server.</param>
134 <exception cref="T:System.ArgumentNullException"><paramref name="serverCertificate">serverCertificate</paramref> is <see langword="null"></see>.</exception>
135 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
136 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
138 Client authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
140 Authentication is already in progress.</exception>
141 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
142 <exception cref="T:System.PlatformNotSupportedException">The <see cref="System.Net.Security.SslStream.AuthenticateAsServer*"></see> method is not supported on Windows 95, Windows 98, or Windows Millennium.</exception>
144 <member name="M:System.Net.Security.SslStream.AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Boolean)">
145 <summary>Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificates and requirements, and using the sytem default security protocol.</summary>
146 <param name="serverCertificate">The X509Certificate used to authenticate the server.</param>
147 <param name="clientCertificateRequired">A <see cref="T:System.Boolean"></see> value that specifies whether the client is asked for a certificate for authentication. Note that this is only a request -- if no certificate is provided, the server still accepts the connection request.</param>
148 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
149 <exception cref="T:System.ArgumentNullException"><paramref name="serverCertificate">serverCertificate</paramref> is <see langword="null"></see>.</exception>
150 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
151 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
153 Client authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
155 Authentication is already in progress.</exception>
156 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
157 <exception cref="T:System.PlatformNotSupportedException">The <see cref="System.Net.Security.SslStream.AuthenticateAsServer*"></see> method is not supported on Windows 95, Windows 98, or Windows Millennium.</exception>
159 <member name="M:System.Net.Security.SslStream.AuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Security.Authentication.SslProtocols,System.Boolean)">
160 <summary>Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificates, requirements and security protocol.</summary>
161 <param name="serverCertificate">The X509Certificate used to authenticate the server.</param>
162 <param name="clientCertificateRequired">A <see cref="T:System.Boolean"></see> value that specifies whether the client is asked for a certificate for authentication. Note that this is only a request -- if no certificate is provided, the server still accepts the connection request.</param>
163 <param name="enabledSslProtocols">The <see cref="T:System.Security.Authentication.SslProtocols"></see> value that represents the protocol used for authentication.</param>
164 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
165 <exception cref="T:System.ArgumentNullException"><paramref name="serverCertificate">serverCertificate</paramref> is <see langword="null"></see>.</exception>
166 <exception cref="T:System.ArgumentException"><paramref name="enabledSslProtocols">enabledSslProtocols</paramref> is not a valid <see cref="System.Security.Authentication.SslProtocols"></see> value.</exception>
167 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
168 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
170 Client authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
172 Authentication is already in progress.</exception>
173 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
174 <exception cref="T:System.PlatformNotSupportedException">The <see cref="System.Net.Security.SslStream.AuthenticateAsServer*"></see> method is not supported on Windows 95, Windows 98, or Windows Millennium.</exception>
176 <member name="M:System.Net.Security.SslStream.AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Security.Authentication.SslProtocols,System.Boolean)">
177 <summary>Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificates, requirements and security protocol as an asynchronous operation.</summary>
178 <param name="serverCertificate">The X509Certificate used to authenticate the server.</param>
179 <param name="clientCertificateRequired">A <see cref="T:System.Boolean"></see> value that specifies whether the client is asked for a certificate for authentication. Note that this is only a request -- if no certificate is provided, the server still accepts the connection request.</param>
180 <param name="enabledSslProtocols">The <see cref="T:System.Security.Authentication.SslProtocols"></see> value that represents the protocol used for authentication.</param>
181 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
182 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
183 The task object representing the asynchronous operation.</returns>
185 <member name="M:System.Net.Security.SslStream.AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Boolean)">
186 <summary>Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificates, requirements and security protocol as an asynchronous operation.</summary>
187 <param name="serverCertificate">The X509Certificate used to authenticate the server.</param>
188 <param name="clientCertificateRequired">A <see cref="T:System.Boolean"></see> value that specifies whether the client is asked for a certificate for authentication. Note that this is only a request -- if no certificate is provided, the server still accepts the connection request.</param>
189 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
190 <returns>The task object representing the asynchronous operation.</returns>
192 <member name="M:System.Net.Security.SslStream.AuthenticateAsServerAsync(System.Security.Cryptography.X509Certificates.X509Certificate)">
193 <summary>Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificate as an asynchronous operation.</summary>
194 <param name="serverCertificate">The certificate used to authenticate the server.</param>
195 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
196 The task object representing the asynchronous operation.</returns>
197 <exception cref="T:System.ArgumentNullException"><paramref name="serverCertificate">serverCertificate</paramref> is <see langword="null"></see>.</exception>
198 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
199 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
201 Client authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
203 Authentication is already in progress.</exception>
204 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
205 <exception cref="T:System.PlatformNotSupportedException">The <see cref="System.Net.Security.SslStream.AuthenticateAsServerAsync*"></see> method is not supported on Windows 95, Windows 98, or Windows Millennium.</exception>
207 <member name="M:System.Net.Security.SslStream.AuthenticateAsServerAsync(System.Net.Security.SslServerAuthenticationOptions,System.Threading.CancellationToken)">
208 <param name="sslServerAuthenticationOptions"></param>
209 <param name="cancellationToken"></param>
212 <member name="M:System.Net.Security.SslStream.BeginAuthenticateAsClient(System.String,System.AsyncCallback,System.Object)">
213 <summary>Called by clients to begin an asynchronous operation to authenticate the server and optionally the client.</summary>
214 <param name="targetHost">The name of the server that shares this <see cref="T:System.Net.Security.SslStream"></see>.</param>
215 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
216 <param name="asyncState">A user-defined object that contains information about the operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
217 <returns>An <see cref="T:System.IAsyncResult"></see> object that indicates the status of the asynchronous operation.</returns>
218 <exception cref="T:System.ArgumentNullException"><paramref name="targetHost">targetHost</paramref> is <see langword="null"></see>.</exception>
219 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
220 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
222 Server authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
224 Authentication is already in progress.</exception>
225 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
227 <member name="M:System.Net.Security.SslStream.BeginAuthenticateAsClient(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Boolean,System.AsyncCallback,System.Object)">
228 <summary>Called by clients to begin an asynchronous operation to authenticate the server and optionally the client using the specified certificates and the system default security protocol.</summary>
229 <param name="targetHost">The name of the server that shares this <see cref="T:System.Net.Security.SslStream"></see>.</param>
230 <param name="clientCertificates">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection"></see> containing client certificates.</param>
231 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
232 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
233 <param name="asyncState">A user-defined object that contains information about the operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
234 <returns>An <see cref="T:System.IAsyncResult"></see> object that indicates the status of the asynchronous operation.</returns>
235 <exception cref="T:System.ArgumentNullException"><paramref name="targetHost">targetHost</paramref> is <see langword="null"></see>.</exception>
236 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
237 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
239 Server authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
241 Authentication is already in progress.</exception>
242 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
244 <member name="M:System.Net.Security.SslStream.BeginAuthenticateAsClient(System.String,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Security.Authentication.SslProtocols,System.Boolean,System.AsyncCallback,System.Object)">
245 <summary>Called by clients to begin an asynchronous operation to authenticate the server and optionally the client using the specified certificates and security protocol.</summary>
246 <param name="targetHost">The name of the server that shares this <see cref="T:System.Net.Security.SslStream"></see>.</param>
247 <param name="clientCertificates">The <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection"></see> containing client certificates.</param>
248 <param name="enabledSslProtocols">The <see cref="T:System.Security.Authentication.SslProtocols"></see> value that represents the protocol used for authentication.</param>
249 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
250 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
251 <param name="asyncState">A user-defined object that contains information about the operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
252 <returns>An <see cref="T:System.IAsyncResult"></see> object that indicates the status of the asynchronous operation.</returns>
253 <exception cref="T:System.ArgumentNullException"><paramref name="targetHost">targetHost</paramref> is <see langword="null"></see>.</exception>
254 <exception cref="T:System.ArgumentException"><paramref name="enabledSslProtocols">enabledSslProtocols</paramref> is not a valid <see cref="System.Security.Authentication.SslProtocols"></see> value.</exception>
255 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
256 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
258 Server authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
260 Authentication is already in progress.</exception>
261 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
263 <member name="M:System.Net.Security.SslStream.BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate,System.AsyncCallback,System.Object)">
264 <summary>Called by servers to begin an asynchronous operation to authenticate the client and optionally the server in a client-server connection.</summary>
265 <param name="serverCertificate">The X509Certificate used to authenticate the server.</param>
266 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
267 <param name="asyncState">A user-defined object that contains information about the operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
268 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
269 <exception cref="T:System.ArgumentNullException"><paramref name="serverCertificate">serverCertificate</paramref> is <see langword="null"></see>.</exception>
270 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
271 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
273 Client authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
275 Authentication is already in progress.</exception>
276 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
277 <exception cref="T:System.PlatformNotSupportedException">The <see cref="System.Net.Security.SslStream.BeginAuthenticateAsServer*"></see> method is not supported on Windows 95, Windows 98, or Windows Millennium.</exception>
279 <member name="M:System.Net.Security.SslStream.BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Boolean,System.AsyncCallback,System.Object)">
280 <summary>Called by servers to begin an asynchronous operation to authenticate the server and optionally the client using the specified certificates and requirements, and the system default security protocol.</summary>
281 <param name="serverCertificate">The X509Certificate used to authenticate the server.</param>
282 <param name="clientCertificateRequired">A <see cref="T:System.Boolean"></see> value that specifies whether the client is asked for a certificate for authentication. Note that this is only a request -- if no certificate is provided, the server still accepts the connection request.</param>
283 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
284 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
285 <param name="asyncState">A user-defined object that contains information about the operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
286 <returns>An <see cref="T:System.IAsyncResult"></see> object that indicates the status of the asynchronous operation.</returns>
287 <exception cref="T:System.ArgumentNullException"><paramref name="serverCertificate">serverCertificate</paramref> is <see langword="null"></see>.</exception>
288 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
289 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
291 Server authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
293 Authentication is already in progress.</exception>
294 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
295 <exception cref="T:System.PlatformNotSupportedException">The <see cref="System.Net.Security.SslStream.BeginAuthenticateAsServer*"></see> method is not supported on Windows 95, Windows 98, or Windows Millennium.</exception>
297 <member name="M:System.Net.Security.SslStream.BeginAuthenticateAsServer(System.Security.Cryptography.X509Certificates.X509Certificate,System.Boolean,System.Security.Authentication.SslProtocols,System.Boolean,System.AsyncCallback,System.Object)">
298 <summary>Called by servers to begin an asynchronous operation to authenticate the server and optionally the client using the specified certificates, requirements and security protocol.</summary>
299 <param name="serverCertificate">The X509Certificate used to authenticate the server.</param>
300 <param name="clientCertificateRequired">A <see cref="T:System.Boolean"></see> value that specifies whether the client is asked for a certificate for authentication. Note that this is only a request -- if no certificate is provided, the server still accepts the connection request.</param>
301 <param name="enabledSslProtocols">The <see cref="T:System.Security.Authentication.SslProtocols"></see> value that represents the protocol used for authentication.</param>
302 <param name="checkCertificateRevocation">A <see cref="T:System.Boolean"></see> value that specifies whether the certificate revocation list is checked during authentication.</param>
303 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
304 <param name="asyncState">A user-defined object that contains information about the operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
305 <returns>An <see cref="T:System.IAsyncResult"></see> object that indicates the status of the asynchronous operation.</returns>
306 <exception cref="T:System.ArgumentNullException"><paramref name="serverCertificate">serverCertificate</paramref> is <see langword="null"></see>.</exception>
307 <exception cref="T:System.ArgumentException"><paramref name="enabledSslProtocols">enabledSslProtocols</paramref> is not a valid <see cref="System.Security.Authentication.SslProtocols"></see> value.</exception>
308 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
309 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
311 Server authentication using this <see cref="System.Net.Security.SslStream"></see> was tried previously.
313 Authentication is already in progress.</exception>
314 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
315 <exception cref="T:System.PlatformNotSupportedException">The <see cref="System.Net.Security.SslStream.BeginAuthenticateAsServer*"></see> method is not supported on Windows 95, Windows 98, or Windows Millennium.</exception>
317 <member name="M:System.Net.Security.SslStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)">
318 <summary>Begins an asynchronous read operation that reads data from the stream and stores it in the specified array.</summary>
319 <param name="buffer">A <see cref="T:System.Byte"></see> array that receives the bytes read from the stream.</param>
320 <param name="offset">The zero-based location in buffer at which to begin storing the data read from this stream.</param>
321 <param name="count">The maximum number of bytes to read from the stream.</param>
322 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the read operation is complete.</param>
323 <param name="asyncState">A user-defined object that contains information about the read operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
324 <returns>An <see cref="T:System.IAsyncResult"></see> object that indicates the status of the asynchronous operation.</returns>
325 <exception cref="T:System.ArgumentNullException"><paramref name="buffer">buffer</paramref> is <see langword="null"></see>.</exception>
326 <exception cref="T:System.ArgumentException"><paramref name="offset">offset</paramref>
327 <paramref name="&lt;">&lt;</paramref>
328 <paramref name="0">0</paramref>.
329 <paramref name="-or-">-or-</paramref><paramref name="offset">offset</paramref> &gt; the length of <paramref name="buffer">buffer</paramref>.
331 <paramref name="offset">offset</paramref> + count &gt; the length of <paramref name="buffer">buffer</paramref>.</exception>
332 <exception cref="T:System.IO.IOException">The read operation failed.
334 Encryption is in use, but the data could not be decrypted.</exception>
335 <exception cref="T:System.NotSupportedException">There is already a read operation in progress.</exception>
336 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
337 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
339 <member name="M:System.Net.Security.SslStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)">
340 <summary>Begins an asynchronous write operation that writes <see cref="T:System.Byte"></see>s from the specified buffer to the stream.</summary>
341 <param name="buffer">A <see cref="T:System.Byte"></see> array that supplies the bytes to be written to the stream.</param>
342 <param name="offset">The zero-based location in buffer at which to begin reading bytes to be written to the stream.</param>
343 <param name="count">An <see cref="T:System.Int32"></see> value that specifies the number of bytes to read from buffer.</param>
344 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the write operation is complete.</param>
345 <param name="asyncState">A user-defined object that contains information about the write operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
346 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
347 <exception cref="T:System.ArgumentNullException"><paramref name="buffer">buffer</paramref> is <see langword="null"></see>.</exception>
348 <exception cref="T:System.ArgumentException"><paramref name="offset">offset</paramref>
349 <paramref name="&lt;">&lt;</paramref>
350 <paramref name="0">0</paramref>.
351 <paramref name="-or-">-or-</paramref><paramref name="offset">offset</paramref> &gt; the length of <paramref name="buffer">buffer</paramref>.
353 <paramref name="offset">offset</paramref> + count &gt; the length of <paramref name="buffer">buffer</paramref>.</exception>
354 <exception cref="T:System.IO.IOException">The write operation failed.</exception>
355 <exception cref="T:System.NotSupportedException">There is already a write operation in progress.</exception>
356 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
357 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
359 <member name="P:System.Net.Security.SslStream.CanRead">
360 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the underlying stream is readable.</summary>
361 <returns><see langword="true"></see> if authentication has occurred and the underlying stream is readable; otherwise <see langword="false"></see>.</returns>
363 <member name="P:System.Net.Security.SslStream.CanSeek">
364 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the underlying stream is seekable.</summary>
365 <returns>This property always returns <see langword="false"></see>.</returns>
367 <member name="P:System.Net.Security.SslStream.CanTimeout">
368 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the underlying stream supports time-outs.</summary>
369 <returns><see langword="true"></see> if the underlying stream supports time-outs; otherwise, <see langword="false"></see>.</returns>
371 <member name="P:System.Net.Security.SslStream.CanWrite">
372 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the underlying stream is writable.</summary>
373 <returns><see langword="true"></see> if authentication has occurred and the underlying stream is writable; otherwise <see langword="false"></see>.</returns>
375 <member name="P:System.Net.Security.SslStream.CheckCertRevocationStatus">
376 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the certificate revocation list is checked during the certificate validation process.</summary>
377 <returns><see langword="true"></see> if the certificate revocation list is checked; otherwise, <see langword="false"></see>.</returns>
379 <member name="P:System.Net.Security.SslStream.CipherAlgorithm">
380 <summary>Gets a value that identifies the bulk encryption algorithm used by this <see cref="T:System.Net.Security.SslStream"></see>.</summary>
381 <returns>A <see cref="T:System.Security.Authentication.CipherAlgorithmType"></see> value.</returns>
382 <exception cref="T:System.InvalidOperationException">The <see cref="System.Net.Security.SslStream.CipherAlgorithm"></see> property was accessed before the completion of the authentication process or the authentication process failed.</exception>
384 <member name="P:System.Net.Security.SslStream.CipherStrength">
385 <summary>Gets a value that identifies the strength of the cipher algorithm used by this <see cref="T:System.Net.Security.SslStream"></see>.</summary>
386 <returns>An <see cref="T:System.Int32"></see> value that specifies the strength of the algorithm, in bits.</returns>
388 <member name="M:System.Net.Security.SslStream.Dispose(System.Boolean)">
389 <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Security.SslStream"></see> and optionally releases the managed resources.</summary>
390 <param name="disposing"><see langword="true"></see> to release both managed and unmanaged resources; <see langword="false"></see> to release only unmanaged resources.</param>
392 <member name="M:System.Net.Security.SslStream.EndAuthenticateAsClient(System.IAsyncResult)">
393 <summary>Ends a pending asynchronous server authentication operation started with a previous call to <see cref="Overload:System.Net.Security.SslStream.BeginAuthenticateAsServer"></see>.</summary>
394 <param name="asyncResult">An <see cref="T:System.IAsyncResult"></see> instance returned by a call to <see cref="Overload:System.Net.Security.SslStream.BeginAuthenticateAsServer"></see>.</param>
395 <exception cref="T:System.ArgumentNullException"><paramref name="asyncResult">asyncResult</paramref> is <see langword="null"></see>.</exception>
396 <exception cref="T:System.ArgumentException"><paramref name="asyncResult">asyncResult</paramref> was not created by a call to <see cref="System.Net.Security.SslStream.BeginAuthenticateAsServer*"></see>.</exception>
397 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
398 <exception cref="T:System.InvalidOperationException">There is no pending server authentication to complete.</exception>
400 <member name="M:System.Net.Security.SslStream.EndAuthenticateAsServer(System.IAsyncResult)">
401 <summary>Ends a pending asynchronous client authentication operation started with a previous call to <see cref="Overload:System.Net.Security.SslStream.BeginAuthenticateAsClient"></see>.</summary>
402 <param name="asyncResult">An <see cref="T:System.IAsyncResult"></see> instance returned by a call to <see cref="Overload:System.Net.Security.SslStream.BeginAuthenticateAsClient"></see>.</param>
403 <exception cref="T:System.ArgumentNullException"><paramref name="asyncResult">asyncResult</paramref> is <see langword="null"></see>.</exception>
404 <exception cref="T:System.ArgumentException"><paramref name="asyncResult">asyncResult</paramref> was not created by a call to <see cref="System.Net.Security.SslStream.BeginAuthenticateAsClient*"></see>.</exception>
405 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
406 <exception cref="T:System.InvalidOperationException">There is no pending client authentication to complete.</exception>
408 <member name="M:System.Net.Security.SslStream.EndRead(System.IAsyncResult)">
409 <summary>Ends an asynchronous read operation started with a previous call to <see cref="M:System.Net.Security.SslStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see>.</summary>
410 <param name="asyncResult">An <see cref="T:System.IAsyncResult"></see> instance returned by a call to <see cref="M:System.Net.Security.SslStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see></param>
411 <returns>A <see cref="T:System.Int32"></see> value that specifies the number of bytes read from the underlying stream.</returns>
412 <exception cref="T:System.ArgumentNullException"><paramref name="asyncResult">asyncResult</paramref> is <see langword="null"></see>.</exception>
413 <exception cref="T:System.ArgumentException"><paramref name="asyncResult">asyncResult</paramref> was not created by a call to <see cref="System.Net.Security.SslStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see>.</exception>
414 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
415 <exception cref="T:System.IO.IOException">The read operation failed.</exception>
417 <member name="M:System.Net.Security.SslStream.EndWrite(System.IAsyncResult)">
418 <summary>Ends an asynchronous write operation started with a previous call to <see cref="M:System.Net.Security.SslStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see>.</summary>
419 <param name="asyncResult">An <see cref="T:System.IAsyncResult"></see> instance returned by a call to <see cref="M:System.Net.Security.SslStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see></param>
420 <exception cref="T:System.ArgumentNullException"><paramref name="asyncResult">asyncResult</paramref> is <see langword="null"></see>.</exception>
421 <exception cref="T:System.ArgumentException"><paramref name="asyncResult">asyncResult</paramref> was not created by a call to <see cref="System.Net.Security.SslStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see>.</exception>
422 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
423 <exception cref="T:System.IO.IOException">The write operation failed.</exception>
425 <member name="M:System.Net.Security.SslStream.Flush">
426 <summary>Causes any buffered data to be written to the underlying device.</summary>
428 <member name="M:System.Net.Security.SslStream.FlushAsync(System.Threading.CancellationToken)">
429 <param name="cancellationToken"></param>
432 <member name="P:System.Net.Security.SslStream.HashAlgorithm">
433 <summary>Gets the algorithm used for generating message authentication codes (MACs).</summary>
434 <returns>A <see cref="T:System.Security.Authentication.HashAlgorithmType"></see> value.</returns>
435 <exception cref="T:System.InvalidOperationException">The <see cref="System.Net.Security.SslStream.HashAlgorithm"></see> property was accessed before the completion of the authentication process or the authentication process failed.</exception>
437 <member name="P:System.Net.Security.SslStream.HashStrength">
438 <summary>Gets a value that identifies the strength of the hash algorithm used by this instance.</summary>
439 <returns>An <see cref="T:System.Int32"></see> value that specifies the strength of the <see cref="T:System.Security.Authentication.HashAlgorithmType"></see> algorithm, in bits. Valid values are 128 or 160.</returns>
441 <member name="P:System.Net.Security.SslStream.IsAuthenticated">
442 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether authentication was successful.</summary>
443 <returns><see langword="true"></see> if successful authentication occurred; otherwise, <see langword="false"></see>.</returns>
445 <member name="P:System.Net.Security.SslStream.IsEncrypted">
446 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether this <see cref="T:System.Net.Security.SslStream"></see> uses data encryption.</summary>
447 <returns><see langword="true"></see> if data is encrypted before being transmitted over the network and decrypted when it reaches the remote endpoint; otherwise <see langword="false"></see>.</returns>
449 <member name="P:System.Net.Security.SslStream.IsMutuallyAuthenticated">
450 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether both server and client have been authenticated.</summary>
451 <returns><see langword="true"></see> if the server has been authenticated; otherwise <see langword="false"></see>.</returns>
453 <member name="P:System.Net.Security.SslStream.IsServer">
454 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the local side of the connection used by this <see cref="T:System.Net.Security.SslStream"></see> was authenticated as the server.</summary>
455 <returns><see langword="true"></see> if the local endpoint was successfully authenticated as the server side of the authenticated connection; otherwise <see langword="false"></see>.</returns>
457 <member name="P:System.Net.Security.SslStream.IsSigned">
458 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the data sent using this stream is signed.</summary>
459 <returns><see langword="true"></see> if the data is signed before being transmitted; otherwise <see langword="false"></see>.</returns>
461 <member name="P:System.Net.Security.SslStream.KeyExchangeAlgorithm">
462 <summary>Gets the key exchange algorithm used by this <see cref="T:System.Net.Security.SslStream"></see>.</summary>
463 <returns>An <see cref="T:System.Security.Authentication.ExchangeAlgorithmType"></see> value.</returns>
465 <member name="P:System.Net.Security.SslStream.KeyExchangeStrength">
466 <summary>Gets a value that identifies the strength of the key exchange algorithm used by this instance.</summary>
467 <returns>An <see cref="T:System.Int32"></see> value that specifies the strength of the <see cref="T:System.Security.Authentication.ExchangeAlgorithmType"></see> algorithm, in bits.</returns>
469 <member name="P:System.Net.Security.SslStream.Length">
470 <summary>Gets the length of the underlying stream.</summary>
471 <returns>A <see cref="T:System.Int64"></see>.
472 The length of the underlying stream.</returns>
473 <exception cref="T:System.NotSupportedException">Getting the value of this property is not supported when the underlying stream is a <see cref="System.Net.Sockets.NetworkStream"></see>.</exception>
475 <member name="P:System.Net.Security.SslStream.LocalCertificate">
476 <summary>Gets the certificate used to authenticate the local endpoint.</summary>
477 <returns>An X509Certificate object that represents the certificate supplied for authentication or <see langword="null"></see> if no certificate was supplied.</returns>
478 <exception cref="T:System.InvalidOperationException">Authentication failed or has not occurred.</exception>
480 <member name="P:System.Net.Security.SslStream.NegotiatedApplicationProtocol">
483 <member name="P:System.Net.Security.SslStream.Position">
484 <summary>Gets or sets the current position in the underlying stream.</summary>
485 <returns>A <see cref="T:System.Int64"></see>.
486 The current position in the underlying stream.</returns>
487 <exception cref="T:System.NotSupportedException">Setting this property is not supported.
489 Getting the value of this property is not supported when the underlying stream is a <see cref="System.Net.Sockets.NetworkStream"></see>.</exception>
491 <member name="M:System.Net.Security.SslStream.Read(System.Byte[],System.Int32,System.Int32)">
492 <summary>Reads data from this stream and stores it in the specified array.</summary>
493 <param name="buffer">A <see cref="T:System.Byte"></see> array that receives the bytes read from this stream.</param>
494 <param name="offset">A <see cref="T:System.Int32"></see> that contains the zero-based location in buffer at which to begin storing the data read from this stream.</param>
495 <param name="count">A <see cref="T:System.Int32"></see> that contains the maximum number of bytes to read from this stream.</param>
496 <returns>A <see cref="T:System.Int32"></see> value that specifies the number of bytes read. When there is no more data to be read, returns 0.</returns>
497 <exception cref="T:System.ArgumentNullException"><paramref name="buffer">buffer</paramref> is <see langword="null"></see>.</exception>
498 <exception cref="T:System.ArgumentException"><paramref name="offset">offset</paramref>
499 <paramref name="&lt;">&lt;</paramref>
500 <paramref name="0">0</paramref>.
501 <paramref name="-or-">-or-</paramref><paramref name="offset">offset</paramref> &gt; the length of <paramref name="buffer">buffer</paramref>.
503 <paramref name="offset">offset</paramref> + count &gt; the length of <paramref name="buffer">buffer</paramref>.</exception>
504 <exception cref="T:System.IO.IOException">The read operation failed. Check the inner exception, if present to determine the cause of the failure.</exception>
505 <exception cref="T:System.NotSupportedException">There is already a read operation in progress.</exception>
506 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
507 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
509 <member name="P:System.Net.Security.SslStream.ReadTimeout">
510 <summary>Gets or sets the amount of time a read operation blocks waiting for data.</summary>
511 <returns>A <see cref="T:System.Int32"></see> that specifies the amount of time that elapses before a synchronous read operation fails.</returns>
513 <member name="P:System.Net.Security.SslStream.RemoteCertificate">
514 <summary>Gets the certificate used to authenticate the remote endpoint.</summary>
515 <returns>An X509Certificate object that represents the certificate supplied for authentication or <see langword="null"></see> if no certificate was supplied.</returns>
516 <exception cref="T:System.InvalidOperationException">Authentication failed or has not occurred.</exception>
518 <member name="M:System.Net.Security.SslStream.Seek(System.Int64,System.IO.SeekOrigin)">
519 <summary>Throws a <see cref="T:System.NotSupportedException"></see>.</summary>
520 <param name="offset">This value is ignored.</param>
521 <param name="origin">This value is ignored.</param>
522 <returns>Always throws a <see cref="T:System.NotSupportedException"></see>.</returns>
523 <exception cref="T:System.NotSupportedException">Seeking is not supported by <see cref="System.Net.Security.SslStream"></see> objects.</exception>
525 <member name="M:System.Net.Security.SslStream.SetLength(System.Int64)">
526 <summary>Sets the length of the underlying stream.</summary>
527 <param name="value">An <see cref="T:System.Int64"></see> value that specifies the length of the stream.</param>
529 <member name="M:System.Net.Security.SslStream.ShutdownAsync">
530 <summary>Shuts down this SslStream.</summary>
531 <returns>The task object representing the asynchronous operation.</returns>
533 <member name="P:System.Net.Security.SslStream.SslProtocol">
534 <summary>Gets a value that indicates the security protocol used to authenticate this connection.</summary>
535 <returns>The <see cref="T:System.Security.Authentication.SslProtocols"></see> value that represents the protocol used for authentication.</returns>
537 <member name="P:System.Net.Security.SslStream.TransportContext">
538 <summary>Gets the <see cref="T:System.Net.TransportContext"></see> used for authentication using extended protection.</summary>
539 <returns>The <see cref="T:System.Net.TransportContext"></see> object that contains the channel binding token (CBT) used for extended protection.</returns>
541 <member name="M:System.Net.Security.SslStream.Write(System.Byte[])">
542 <summary>Writes the specified data to this stream.</summary>
543 <param name="buffer">A <see cref="T:System.Byte"></see> array that supplies the bytes written to the stream.</param>
544 <exception cref="T:System.ArgumentNullException"><paramref name="buffer">buffer</paramref> is <see langword="null"></see>.</exception>
545 <exception cref="T:System.IO.IOException">The write operation failed.</exception>
546 <exception cref="T:System.NotSupportedException">There is already a write operation in progress.</exception>
547 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
548 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
550 <member name="M:System.Net.Security.SslStream.Write(System.Byte[],System.Int32,System.Int32)">
551 <summary>Write the specified number of <see cref="T:System.Byte"></see>s to the underlying stream using the specified buffer and offset.</summary>
552 <param name="buffer">A <see cref="T:System.Byte"></see> array that supplies the bytes written to the stream.</param>
553 <param name="offset">A <see cref="T:System.Int32"></see> that contains the zero-based location in buffer at which to begin reading bytes to be written to the stream.</param>
554 <param name="count">A <see cref="T:System.Int32"></see> that contains the number of bytes to read from buffer.</param>
555 <exception cref="T:System.ArgumentNullException"><paramref name="buffer">buffer</paramref> is <see langword="null"></see>.</exception>
556 <exception cref="T:System.ArgumentException"><paramref name="offset">offset</paramref>
557 <paramref name="&lt;">&lt;</paramref>
558 <paramref name="0">0</paramref>.
559 <paramref name="-or-">-or-</paramref><paramref name="offset">offset</paramref> &gt; the length of <paramref name="buffer">buffer</paramref>.
561 <paramref name="offset">offset</paramref> + count &gt; the length of <paramref name="buffer">buffer</paramref>.</exception>
562 <exception cref="T:System.IO.IOException">The write operation failed.</exception>
563 <exception cref="T:System.NotSupportedException">There is already a write operation in progress.</exception>
564 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
565 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
567 <member name="P:System.Net.Security.SslStream.WriteTimeout">
568 <summary>Gets or sets the amount of time a write operation blocks waiting for data.</summary>
569 <returns>A <see cref="T:System.Int32"></see> that specifies the amount of time that elapses before a synchronous write operation fails.</returns>
571 <member name="T:System.Net.Security.SslServerAuthenticationOptions">
574 <member name="M:System.Net.Security.SslServerAuthenticationOptions.#ctor">
577 <member name="P:System.Net.Security.SslServerAuthenticationOptions.AllowRenegotiation">
580 <member name="P:System.Net.Security.SslServerAuthenticationOptions.ApplicationProtocols">
583 <member name="P:System.Net.Security.SslServerAuthenticationOptions.CertificateRevocationCheckMode">
586 <member name="P:System.Net.Security.SslServerAuthenticationOptions.ClientCertificateRequired">
589 <member name="P:System.Net.Security.SslServerAuthenticationOptions.EnabledSslProtocols">
592 <member name="P:System.Net.Security.SslServerAuthenticationOptions.EncryptionPolicy">
595 <member name="P:System.Net.Security.SslServerAuthenticationOptions.RemoteCertificateValidationCallback">
598 <member name="P:System.Net.Security.SslServerAuthenticationOptions.ServerCertificate">
601 <member name="P:System.Net.Security.SslServerAuthenticationOptions.ServerCertificateSelectionCallback">
604 <member name="T:System.Net.Security.SslClientAuthenticationOptions">
607 <member name="M:System.Net.Security.SslClientAuthenticationOptions.#ctor">
610 <member name="P:System.Net.Security.SslClientAuthenticationOptions.AllowRenegotiation">
613 <member name="P:System.Net.Security.SslClientAuthenticationOptions.ApplicationProtocols">
616 <member name="P:System.Net.Security.SslClientAuthenticationOptions.CertificateRevocationCheckMode">
619 <member name="P:System.Net.Security.SslClientAuthenticationOptions.ClientCertificates">
622 <member name="P:System.Net.Security.SslClientAuthenticationOptions.EnabledSslProtocols">
625 <member name="P:System.Net.Security.SslClientAuthenticationOptions.EncryptionPolicy">
628 <member name="P:System.Net.Security.SslClientAuthenticationOptions.LocalCertificateSelectionCallback">
631 <member name="P:System.Net.Security.SslClientAuthenticationOptions.RemoteCertificateValidationCallback">
634 <member name="P:System.Net.Security.SslClientAuthenticationOptions.TargetHost">
637 <member name="T:System.Net.Security.SslApplicationProtocol">
640 <member name="M:System.Net.Security.SslApplicationProtocol.#ctor(System.Byte[])">
641 <param name="protocol"></param>
643 <member name="M:System.Net.Security.SslApplicationProtocol.#ctor(System.String)">
644 <param name="protocol"></param>
646 <member name="M:System.Net.Security.SslApplicationProtocol.Equals(System.Net.Security.SslApplicationProtocol)">
647 <param name="other"></param>
650 <member name="M:System.Net.Security.SslApplicationProtocol.Equals(System.Object)">
651 <param name="obj"></param>
654 <member name="M:System.Net.Security.SslApplicationProtocol.GetHashCode">
657 <member name="F:System.Net.Security.SslApplicationProtocol.Http11">
660 <member name="F:System.Net.Security.SslApplicationProtocol.Http2">
663 <member name="M:System.Net.Security.SslApplicationProtocol.op_Equality(System.Net.Security.SslApplicationProtocol,System.Net.Security.SslApplicationProtocol)">
664 <param name="left"></param>
665 <param name="right"></param>
668 <member name="M:System.Net.Security.SslApplicationProtocol.op_Inequality(System.Net.Security.SslApplicationProtocol,System.Net.Security.SslApplicationProtocol)">
669 <param name="left"></param>
670 <param name="right"></param>
673 <member name="P:System.Net.Security.SslApplicationProtocol.Protocol">
676 <member name="M:System.Net.Security.SslApplicationProtocol.ToString">
679 <member name="T:System.Net.Security.ServerCertificateSelectionCallback">
680 <param name="sender"></param>
681 <param name="hostName"></param>
684 <member name="T:System.Net.Security.RemoteCertificateValidationCallback">
685 <summary>Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication.</summary>
686 <param name="sender">An object that contains state information for this validation.</param>
687 <param name="certificate">The certificate used to authenticate the remote party.</param>
688 <param name="chain">The chain of certificate authorities associated with the remote certificate.</param>
689 <param name="sslPolicyErrors">One or more errors associated with the remote certificate.</param>
690 <returns>A <see cref="T:System.Boolean"></see> value that determines whether the specified certificate is accepted for authentication.</returns>
692 <member name="T:System.Net.Security.ProtectionLevel">
693 <summary>Indicates the security services requested for an authenticated stream.</summary>
695 <member name="F:System.Net.Security.ProtectionLevel.EncryptAndSign">
696 <summary>Encrypt and sign data to help ensure the confidentiality and integrity of transmitted data.</summary>
699 <member name="F:System.Net.Security.ProtectionLevel.None">
700 <summary>Authentication only.</summary>
703 <member name="F:System.Net.Security.ProtectionLevel.Sign">
704 <summary>Sign data to help ensure the integrity of transmitted data.</summary>
707 <member name="T:System.Net.Security.NegotiateStream">
708 <summary>Provides a stream that uses the Negotiate security protocol to authenticate the client, and optionally the server, in client-server communication.</summary>
710 <member name="M:System.Net.Security.NegotiateStream.#ctor(System.IO.Stream)">
711 <summary>Initializes a new instance of the <see cref="T:System.Net.Security.NegotiateStream"></see> class using the specified <see cref="T:System.IO.Stream"></see>.</summary>
712 <param name="innerStream">A <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.NegotiateStream"></see> for sending and receiving data.</param>
714 <member name="M:System.Net.Security.NegotiateStream.#ctor(System.IO.Stream,System.Boolean)">
715 <summary>Initializes a new instance of the <see cref="T:System.Net.Security.NegotiateStream"></see> class using the specified <see cref="T:System.IO.Stream"></see> and stream closure behavior.</summary>
716 <param name="innerStream">A <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.NegotiateStream"></see> for sending and receiving data.</param>
717 <param name="leaveInnerStreamOpen"><see langword="true"></see> to indicate that closing this <see cref="T:System.Net.Security.NegotiateStream"></see> has no effect on innerstream; <see langword="false"></see> to indicate that closing this <see cref="T:System.Net.Security.NegotiateStream"></see> also closes innerStream.</param>
718 <exception cref="T:System.ArgumentNullException"><paramref name="innerStream">innerStream</paramref> is <see langword="null"></see>.
720 <paramref name="innerStream">innerStream</paramref> is equal to <see cref="System.IO.Stream.Null"></see>.</exception>
722 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsClient">
723 <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection.</summary>
724 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
725 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
726 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
727 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
729 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
731 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsClient(System.Net.NetworkCredential,System.String)">
732 <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified client credential.</summary>
733 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
734 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
735 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
736 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
737 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
738 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
740 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
741 <exception cref="T:System.ArgumentNullException"><paramref name="targetName">targetName</paramref> is <see langword="null"></see>.</exception>
743 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsClient(System.Net.NetworkCredential,System.Security.Authentication.ExtendedProtection.ChannelBinding,System.String)">
744 <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified client credential and the channel binding.</summary>
745 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
746 <param name="binding">The <see cref="T:System.Security.Authentication.ExtendedProtection.ChannelBinding"></see> that is used for extended protection.</param>
747 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
748 <exception cref="T:System.ArgumentNullException"><paramref name="targetName">targetName</paramref> is <see langword="null"></see>.
750 <paramref name="credential">credential</paramref> is <see langword="null"></see>.</exception>
751 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
752 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
753 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
755 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
756 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
758 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsClient(System.Net.NetworkCredential,System.String,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel)">
759 <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials and authentication options.</summary>
760 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
761 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
762 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
763 <param name="allowedImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
764 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="allowedImpersonationLevel">allowedImpersonationLevel</paramref> is not a valid value.</exception>
765 <exception cref="T:System.ArgumentNullException"><paramref name="targetName">targetName</paramref> is null.</exception>
766 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
767 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
768 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
769 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
771 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
773 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsClient(System.Net.NetworkCredential,System.Security.Authentication.ExtendedProtection.ChannelBinding,System.String,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel)">
774 <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credential, authentication options, and channel binding.</summary>
775 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
776 <param name="binding">The <see cref="T:System.Security.Authentication.ExtendedProtection.ChannelBinding"></see> that is used for extended protection.</param>
777 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
778 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
779 <param name="allowedImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
780 <exception cref="T:System.ArgumentNullException"><paramref name="targetName">targetName</paramref> is <see langword="null"></see>.
782 <paramref name="credential">credential</paramref> is <see langword="null"></see>.</exception>
783 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="allowedImpersonationLevel">allowedImpersonationLevel</paramref> is not a valid value.</exception>
784 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
785 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
786 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
788 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
789 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
791 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsClientAsync">
792 <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection as an asynchronous operation.</summary>
793 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
794 The task object representing the asynchronous operation.</returns>
795 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
796 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
797 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
798 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
800 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
802 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsClientAsync(System.Net.NetworkCredential,System.String)">
803 <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection as an asynchronous operation. The authentication process uses the specified client credential.</summary>
804 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
805 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
806 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
807 The task object representing the asynchronous operation.</returns>
808 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
809 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
810 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
811 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
813 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
814 <exception cref="T:System.ArgumentNullException"><paramref name="targetName">targetName</paramref> is <see langword="null"></see>.</exception>
816 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsClientAsync(System.Net.NetworkCredential,System.Security.Authentication.ExtendedProtection.ChannelBinding,System.String)">
817 <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection as an asynchronous operation. The authentication process uses the specified client credential and the channel binding.</summary>
818 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
819 <param name="binding">The <see cref="T:System.Security.Authentication.ExtendedProtection.ChannelBinding"></see> that is used for extended protection.</param>
820 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
821 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
822 The task object representing the asynchronous operation.</returns>
823 <exception cref="T:System.ArgumentNullException"><paramref name="targetName">targetName</paramref> is <see langword="null"></see>.
825 <paramref name="credential">credential</paramref> is <see langword="null"></see>.</exception>
826 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
827 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
828 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
830 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
831 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
833 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsClientAsync(System.Net.NetworkCredential,System.String,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel)">
834 <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection as an asynchronous operation. The authentication process uses the specified credentials and authentication options.</summary>
835 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
836 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
837 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
838 <param name="allowedImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
839 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
840 The task object representing the asynchronous operation.</returns>
841 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="allowedImpersonationLevel">allowedImpersonationLevel</paramref> is not a valid value.</exception>
842 <exception cref="T:System.ArgumentNullException"><paramref name="targetName">targetName</paramref> is null.</exception>
843 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
844 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
845 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
846 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
848 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
850 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsClientAsync(System.Net.NetworkCredential,System.Security.Authentication.ExtendedProtection.ChannelBinding,System.String,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel)">
851 <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection as an asynchronous operation. The authentication process uses the specified credential, authentication options, and channel binding.</summary>
852 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
853 <param name="binding">The <see cref="T:System.Security.Authentication.ExtendedProtection.ChannelBinding"></see> that is used for extended protection.</param>
854 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
855 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
856 <param name="allowedImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
857 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
858 The task object representing the asynchronous operation.</returns>
859 <exception cref="T:System.ArgumentNullException"><paramref name="targetName">targetName</paramref> is <see langword="null"></see>.
861 <paramref name="credential">credential</paramref> is <see langword="null"></see>.</exception>
862 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="allowedImpersonationLevel">allowedImpersonationLevel</paramref> is not a valid value.</exception>
863 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
864 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
865 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
867 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
868 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
870 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsServer(System.Net.NetworkCredential,System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel)">
871 <summary>Called by servers to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified server credentials, authentication options, and extended protection policy.</summary>
872 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
873 <param name="policy">The <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> that is used for extended protection.</param>
874 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
875 <param name="requiredImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
876 <exception cref="T:System.ArgumentException">The <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomChannelBinding"></see> and <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomServiceNames"></see> on the extended protection policy passed in the <paramref name="policy">policy</paramref> parameter are both <see langword="null"></see>.</exception>
877 <exception cref="T:System.ArgumentNullException"><paramref name="credential">credential</paramref> is <see langword="null"></see>.</exception>
878 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="requiredImpersonationLevel">requiredImpersonationLevel</paramref> must be <see cref="System.Security.Principal.TokenImpersonationLevel.Identification"></see>, <see cref="System.Security.Principal.TokenImpersonationLevel.Impersonation"></see>, or <see cref="System.Security.Principal.TokenImpersonationLevel.Delegation"></see>,</exception>
879 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to try to r-authenticate.</exception>
880 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
881 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
883 This stream was used previously to attempt authentication as the client. You cannot use the stream to retry authentication as the server.</exception>
884 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
885 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
886 <exception cref="T:System.PlatformNotSupportedException">The <paramref name="policy">policy</paramref> parameter was set to <see cref="System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Always"></see> on a platform that does not support extended protection.</exception>
888 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsServer(System.Net.NetworkCredential,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel)">
889 <summary>Called by servers to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified server credentials and authentication options.</summary>
890 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the server.</param>
891 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
892 <param name="requiredImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
893 <exception cref="T:System.ArgumentNullException"><paramref name="credential">credential</paramref> is <see langword="null"></see>.</exception>
894 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="requiredImpersonationLevel">requiredImpersonationLevel</paramref> must be <see cref="System.Security.Principal.TokenImpersonationLevel.Identification"></see>, <see cref="System.Security.Principal.TokenImpersonationLevel.Impersonation"></see>, or <see cref="System.Security.Principal.TokenImpersonationLevel.Delegation"></see>,</exception>
895 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to try to r-authenticate.</exception>
896 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
897 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
898 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
900 This stream was used previously to attempt authentication as the client. You cannot use the stream to retry authentication as the server.</exception>
901 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
903 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsServer">
904 <summary>Called by servers to authenticate the client, and optionally the server, in a client-server connection.</summary>
905 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
906 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
907 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
908 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
910 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsServer(System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy)">
911 <summary>Called by servers to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified extended protection policy.</summary>
912 <param name="policy">The <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> that is used for extended protection.</param>
913 <exception cref="T:System.ArgumentException">The <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomChannelBinding"></see> and <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomServiceNames"></see> on the extended protection policy passed in the <paramref name="policy">policy</paramref> parameter are both <see langword="null"></see>.</exception>
914 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
915 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
916 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
917 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
918 <exception cref="T:System.PlatformNotSupportedException">The <paramref name="policy">policy</paramref> parameter was set to <see cref="System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Always"></see> on a platform that does not support extended protection.</exception>
920 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsServerAsync">
921 <summary>Called by servers to authenticate the client, and optionally the server, in a client-server connection as an asynchronous operation.</summary>
922 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
923 The task object representing the asynchronous operation.</returns>
924 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
925 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
926 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
927 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
929 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsServerAsync(System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy)">
930 <summary>Called by servers to authenticate the client, and optionally the server, in a client-server connection as an asynchronous operation. The authentication process uses the specified extended protection policy.</summary>
931 <param name="policy">The <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> that is used for extended protection.</param>
932 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
933 The task object representing the asynchronous operation.</returns>
934 <exception cref="T:System.ArgumentException">The <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomChannelBinding"></see> and <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomServiceNames"></see> on the extended protection policy passed in the <paramref name="policy">policy</paramref> parameter are both <see langword="null"></see>.</exception>
935 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
936 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
937 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
938 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
939 <exception cref="T:System.PlatformNotSupportedException">The <paramref name="policy">policy</paramref> parameter was set to <see cref="System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Always"></see> on a platform that does not support extended protection.</exception>
941 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsServerAsync(System.Net.NetworkCredential,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel)">
942 <summary>Called by servers to authenticate the client, and optionally the server, in a client-server connection as an asynchronous operation. The authentication process uses the specified server credentials and authentication options.</summary>
943 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the server.</param>
944 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
945 <param name="requiredImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
946 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
947 The task object representing the asynchronous operation.</returns>
948 <exception cref="T:System.ArgumentNullException"><paramref name="credential">credential</paramref> is <see langword="null"></see>.</exception>
949 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="requiredImpersonationLevel">requiredImpersonationLevel</paramref> must be <see cref="System.Security.Principal.TokenImpersonationLevel.Identification"></see>, <see cref="System.Security.Principal.TokenImpersonationLevel.Impersonation"></see>, or <see cref="System.Security.Principal.TokenImpersonationLevel.Delegation"></see>,</exception>
950 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to try to r-authenticate.</exception>
951 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
952 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
953 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
955 This stream was used previously to attempt authentication as the client. You cannot use the stream to retry authentication as the server.</exception>
956 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
958 <member name="M:System.Net.Security.NegotiateStream.AuthenticateAsServerAsync(System.Net.NetworkCredential,System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel)">
959 <summary>Called by servers to authenticate the client, and optionally the server, in a client-server connection as an asynchronous operation. The authentication process uses the specified server credentials, authentication options, and extended protection policy.</summary>
960 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
961 <param name="policy">The <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> that is used for extended protection.</param>
962 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
963 <param name="requiredImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
964 <returns>Returns <see cref="T:System.Threading.Tasks.Task"></see>
965 The task object representing the asynchronous operation.</returns>
966 <exception cref="T:System.ArgumentException">The <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomChannelBinding"></see> and <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomServiceNames"></see> on the extended protection policy passed in the <paramref name="policy">policy</paramref> parameter are both <see langword="null"></see>.</exception>
967 <exception cref="T:System.ArgumentNullException"><paramref name="credential">credential</paramref> is <see langword="null"></see>.</exception>
968 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="requiredImpersonationLevel">requiredImpersonationLevel</paramref> must be <see cref="System.Security.Principal.TokenImpersonationLevel.Identification"></see>, <see cref="System.Security.Principal.TokenImpersonationLevel.Impersonation"></see>, or <see cref="System.Security.Principal.TokenImpersonationLevel.Delegation"></see>,</exception>
969 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to try to r-authenticate.</exception>
970 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
971 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
973 This stream was used previously to attempt authentication as the client. You cannot use the stream to retry authentication as the server.</exception>
974 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
975 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
976 <exception cref="T:System.PlatformNotSupportedException">The <paramref name="policy">policy</paramref> parameter was set to <see cref="System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Always"></see> on a platform that does not support extended protection.</exception>
978 <member name="M:System.Net.Security.NegotiateStream.BeginAuthenticateAsClient(System.Net.NetworkCredential,System.Security.Authentication.ExtendedProtection.ChannelBinding,System.String,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel,System.AsyncCallback,System.Object)">
979 <summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials, authentication options, and channel binding. This method does not block.</summary>
980 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
981 <param name="binding">The <see cref="T:System.Security.Authentication.ExtendedProtection.ChannelBinding"></see> that is used for extended protection.</param>
982 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
983 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
984 <param name="allowedImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
985 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
986 <param name="asyncState">A user-defined object containing information about the write operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
987 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
988 <exception cref="T:System.ArgumentNullException"><paramref name="credential">credential</paramref> is <see langword="null"></see>.
990 <paramref name="targetName">targetName</paramref> is <see langword="null"></see>.</exception>
991 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
992 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
993 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
995 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
996 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
998 <member name="M:System.Net.Security.NegotiateStream.BeginAuthenticateAsClient(System.AsyncCallback,System.Object)">
999 <summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. This method does not block.</summary>
1000 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
1001 <param name="asyncState">A user-defined object containing information about the operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
1002 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
1003 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
1004 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
1005 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1006 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
1008 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
1010 <member name="M:System.Net.Security.NegotiateStream.BeginAuthenticateAsClient(System.Net.NetworkCredential,System.String,System.AsyncCallback,System.Object)">
1011 <summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials. This method does not block.</summary>
1012 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
1013 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
1014 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
1015 <param name="asyncState">A user-defined object containing information about the write operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
1016 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
1017 <exception cref="T:System.ArgumentNullException"><paramref name="credential">credential</paramref> is <see langword="null"></see>.
1019 <paramref name="targetName">targetName</paramref> is <see langword="null"></see>.</exception>
1020 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
1021 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
1022 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1023 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
1025 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
1027 <member name="M:System.Net.Security.NegotiateStream.BeginAuthenticateAsClient(System.Net.NetworkCredential,System.Security.Authentication.ExtendedProtection.ChannelBinding,System.String,System.AsyncCallback,System.Object)">
1028 <summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials and channel binding. This method does not block.</summary>
1029 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
1030 <param name="binding">The <see cref="T:System.Security.Authentication.ExtendedProtection.ChannelBinding"></see> that is used for extended protection.</param>
1031 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
1032 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
1033 <param name="asyncState">A user-defined object containing information about the write operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
1034 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
1035 <exception cref="T:System.ArgumentNullException"><paramref name="credential">credential</paramref> is <see langword="null"></see>.
1037 <paramref name="targetName">targetName</paramref> is <see langword="null"></see>.</exception>
1038 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
1039 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
1040 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
1042 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
1043 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1045 <member name="M:System.Net.Security.NegotiateStream.BeginAuthenticateAsClient(System.Net.NetworkCredential,System.String,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel,System.AsyncCallback,System.Object)">
1046 <summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials and authentication options. This method does not block.</summary>
1047 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
1048 <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
1049 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
1050 <param name="allowedImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
1051 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
1052 <param name="asyncState">A user-defined object containing information about the write operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
1053 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
1054 <exception cref="T:System.ArgumentNullException"><paramref name="credential">credential</paramref> is <see langword="null"></see>.
1056 <paramref name="targetName">targetName</paramref> is <see langword="null"></see>.</exception>
1057 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
1058 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
1059 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1060 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
1062 This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
1064 <member name="M:System.Net.Security.NegotiateStream.BeginAuthenticateAsServer(System.Net.NetworkCredential,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel,System.AsyncCallback,System.Object)">
1065 <summary>Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified server credentials and authentication options. This method does not block.</summary>
1066 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
1067 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
1068 <param name="requiredImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
1069 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
1070 <param name="asyncState">A user-defined object containing information about the operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
1071 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
1072 <exception cref="T:System.ArgumentNullException"><paramref name="credential">credential</paramref> is <see langword="null"></see>.</exception>
1073 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="requiredImpersonationLevel">requiredImpersonationLevel</paramref> must be <see cref="System.Security.Principal.TokenImpersonationLevel.Identification"></see>, <see cref="System.Security.Principal.TokenImpersonationLevel.Impersonation"></see>, or <see cref="System.Security.Principal.TokenImpersonationLevel.Delegation"></see>,</exception>
1074 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
1075 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
1076 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1077 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
1079 This stream was used previously to attempt authentication as the client. You cannot use the stream to retry authentication as the server.</exception>
1080 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
1082 <member name="M:System.Net.Security.NegotiateStream.BeginAuthenticateAsServer(System.Net.NetworkCredential,System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy,System.Net.Security.ProtectionLevel,System.Security.Principal.TokenImpersonationLevel,System.AsyncCallback,System.Object)">
1083 <summary>Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified server credentials, authentication options, and extended protection policy. This method does not block.</summary>
1084 <param name="credential">The <see cref="T:System.Net.NetworkCredential"></see> that is used to establish the identity of the client.</param>
1085 <param name="policy">The <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> that is used for extended protection.</param>
1086 <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel"></see> values, indicating the security services for the stream.</param>
1087 <param name="requiredImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values, indicating how the server can use the client&#39;s credentials to access resources.</param>
1088 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
1089 <param name="asyncState">A user-defined object containing information about the write operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
1090 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
1091 <exception cref="T:System.ArgumentException">The <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomChannelBinding"></see> and <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomServiceNames"></see> on the extended protection policy passed in the <paramref name="policy">policy</paramref> parameter are both <see langword="null"></see>.</exception>
1092 <exception cref="T:System.ArgumentNullException"><paramref name="credential">credential</paramref> is <see langword="null"></see>.</exception>
1093 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="requiredImpersonationLevel">requiredImpersonationLevel</paramref> must be <see cref="System.Security.Principal.TokenImpersonationLevel.Identification"></see>, <see cref="System.Security.Principal.TokenImpersonationLevel.Impersonation"></see>, or <see cref="System.Security.Principal.TokenImpersonationLevel.Delegation"></see>,</exception>
1094 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
1095 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
1096 <exception cref="T:System.InvalidOperationException">Authentication has already occurred.
1098 This stream was used previously to attempt authentication as the client. You cannot use the stream to retry authentication as the server.</exception>
1099 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
1100 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1101 <exception cref="T:System.PlatformNotSupportedException">The <paramref name="policy">policy</paramref> parameter was set to <see cref="System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Always"></see> on a platform that does not support extended protection.</exception>
1103 <member name="M:System.Net.Security.NegotiateStream.BeginAuthenticateAsServer(System.AsyncCallback,System.Object)">
1104 <summary>Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. This method does not block.</summary>
1105 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
1106 <param name="asyncState">A user-defined object containing information about the operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
1107 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
1108 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
1109 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
1110 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1111 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
1113 <member name="M:System.Net.Security.NegotiateStream.BeginAuthenticateAsServer(System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy,System.AsyncCallback,System.Object)">
1114 <summary>Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified extended protection policy. This method does not block.</summary>
1115 <param name="policy">The <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> that is used for extended protection.</param>
1116 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the authentication is complete.</param>
1117 <param name="asyncState">A user-defined object containing information about the write operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
1118 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
1119 <exception cref="T:System.ArgumentException">The <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomChannelBinding"></see> and <see cref="System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomServiceNames"></see> on the extended protection policy passed in the <paramref name="policy">policy</paramref> parameter are both <see langword="null"></see>.</exception>
1120 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
1121 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
1122 <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
1123 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1124 <exception cref="T:System.PlatformNotSupportedException">The <paramref name="policy">policy</paramref> parameter was set to <see cref="System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Always"></see> on a platform that does not support extended protection.</exception>
1126 <member name="M:System.Net.Security.NegotiateStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)">
1127 <summary>Begins an asynchronous read operation that reads data from the stream and stores it in the specified array.</summary>
1128 <param name="buffer">A <see cref="T:System.Byte"></see> array that receives the bytes read from the stream.</param>
1129 <param name="offset">The zero-based location in buffer at which to begin storing the data read from this stream.</param>
1130 <param name="count">The maximum number of bytes to read from the stream.</param>
1131 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the read operation is complete.</param>
1132 <param name="asyncState">A user-defined object containing information about the read operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
1133 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
1134 <exception cref="T:System.ArgumentNullException"><paramref name="buffer">buffer</paramref> is <see langword="null"></see>.</exception>
1135 <exception cref="T:System.ArgumentException"><paramref name="offset">offset</paramref> is less than 0.
1137 <paramref name="offset">offset</paramref> is greater than the length of <paramref name="buffer">buffer</paramref>.
1139 <paramref name="offset">offset</paramref> plus <paramref name="count">count</paramref> is greater than the length of <paramref name="buffer">buffer</paramref>.</exception>
1140 <exception cref="T:System.IO.IOException">The read operation failed.
1142 Encryption is in use, but the data could not be decrypted.</exception>
1143 <exception cref="T:System.NotSupportedException">There is already a read operation in progress.</exception>
1144 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1145 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
1147 <member name="M:System.Net.Security.NegotiateStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)">
1148 <summary>Begins an asynchronous write operation that writes <see cref="T:System.Byte"></see>s from the specified buffer to the stream.</summary>
1149 <param name="buffer">A <see cref="T:System.Byte"></see> array that supplies the bytes to be written to the stream.</param>
1150 <param name="offset">The zero-based location in buffer at which to begin reading bytes to be written to the stream.</param>
1151 <param name="count">An <see cref="T:System.Int32"></see> value that specifies the number of bytes to read from buffer.</param>
1152 <param name="asyncCallback">An <see cref="T:System.AsyncCallback"></see> delegate that references the method to invoke when the write operation is complete.</param>
1153 <param name="asyncState">A user-defined object containing information about the write operation. This object is passed to the asyncCallback delegate when the operation completes.</param>
1154 <returns>An <see cref="T:System.IAsyncResult"></see> object indicating the status of the asynchronous operation.</returns>
1155 <exception cref="T:System.ArgumentNullException"><paramref name="buffer">buffer</paramref> is <see langword="null"></see>.</exception>
1156 <exception cref="T:System.ArgumentException"><paramref name="offset is less than 0">offset is less than 0</paramref>.
1158 <paramref name="offset">offset</paramref> is greater than the length of <paramref name="buffer">buffer</paramref>.
1160 <paramref name="offset">offset</paramref> plus count is greater than the length of <paramref name="buffer">buffer</paramref>.</exception>
1161 <exception cref="T:System.IO.IOException">The write operation failed.
1163 Encryption is in use, but the data could not be encrypted.</exception>
1164 <exception cref="T:System.NotSupportedException">There is already a write operation in progress.</exception>
1165 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1166 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
1168 <member name="P:System.Net.Security.NegotiateStream.CanRead">
1169 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the underlying stream is readable.</summary>
1170 <returns><see langword="true"></see> if authentication has occurred and the underlying stream is readable; otherwise, <see langword="false"></see>.</returns>
1172 <member name="P:System.Net.Security.NegotiateStream.CanSeek">
1173 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the underlying stream is seekable.</summary>
1174 <returns>This property always returns <see langword="false"></see>.</returns>
1176 <member name="P:System.Net.Security.NegotiateStream.CanTimeout">
1177 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the underlying stream supports time-outs.</summary>
1178 <returns><see langword="true"></see> if the underlying stream supports time-outs; otherwise, <see langword="false"></see>.</returns>
1180 <member name="P:System.Net.Security.NegotiateStream.CanWrite">
1181 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the underlying stream is writable.</summary>
1182 <returns><see langword="true"></see> if authentication has occurred and the underlying stream is writable; otherwise, <see langword="false"></see>.</returns>
1184 <member name="M:System.Net.Security.NegotiateStream.Dispose(System.Boolean)">
1185 <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Security.NegotiateStream"></see> and optionally releases the managed resources.</summary>
1186 <param name="disposing"><see langword="true"></see> to release both managed and unmanaged resources; <see langword="false"></see> to release only unmanaged resources.</param>
1188 <member name="M:System.Net.Security.NegotiateStream.EndAuthenticateAsClient(System.IAsyncResult)">
1189 <summary>Ends a pending asynchronous client authentication operation that was started with a call to <see cref="Overload:System.Net.Security.NegotiateStream.BeginAuthenticateAsClient"></see>.</summary>
1190 <param name="asyncResult">An <see cref="T:System.IAsyncResult"></see> instance returned by a call to <see cref="Overload:System.Net.Security.NegotiateStream.BeginAuthenticateAsClient"></see>.</param>
1191 <exception cref="T:System.ArgumentNullException"><paramref name="asyncResult">asyncResult</paramref> is <see langword="null"></see>.</exception>
1192 <exception cref="T:System.ArgumentException"><paramref name="asyncResult">asyncResult</paramref> was not created by a call to <see cref="System.Net.Security.NegotiateStream.BeginAuthenticateAsClient*"></see>.</exception>
1193 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
1194 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
1195 <exception cref="T:System.InvalidOperationException">There is no pending client authentication to complete.</exception>
1197 <member name="M:System.Net.Security.NegotiateStream.EndAuthenticateAsServer(System.IAsyncResult)">
1198 <summary>Ends a pending asynchronous client authentication operation that was started with a call to <see cref="Overload:System.Net.Security.NegotiateStream.BeginAuthenticateAsServer"></see>.</summary>
1199 <param name="asyncResult">An <see cref="T:System.IAsyncResult"></see> instance returned by a call to <see cref="Overload:System.Net.Security.NegotiateStream.BeginAuthenticateAsServer"></see>.</param>
1200 <exception cref="T:System.ArgumentNullException"><paramref name="asyncResult">asyncResult</paramref> is <see langword="null"></see>.</exception>
1201 <exception cref="T:System.ArgumentException"><paramref name="asyncResult">asyncResult</paramref> was not created by a call to <see cref="System.Net.Security.NegotiateStream.BeginAuthenticateAsServer*"></see>.</exception>
1202 <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
1203 <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
1204 <exception cref="T:System.InvalidOperationException">There is no pending authentication to complete.</exception>
1206 <member name="M:System.Net.Security.NegotiateStream.EndRead(System.IAsyncResult)">
1207 <summary>Ends an asynchronous read operation that was started with a call to <see cref="M:System.Net.Security.NegotiateStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see>.</summary>
1208 <param name="asyncResult">An <see cref="T:System.IAsyncResult"></see> instance returned by a call to <see cref="M:System.Net.Security.NegotiateStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see></param>
1209 <returns>A <see cref="T:System.Int32"></see> value that specifies the number of bytes read from the underlying stream.</returns>
1210 <exception cref="T:System.ArgumentNullException"><paramref name="asyncResult">asyncResult</paramref> is <see langword="null"></see>.</exception>
1211 <exception cref="T:System.ArgumentException">The asyncResult was not created by a call to <see cref="System.Net.Security.NegotiateStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see>.</exception>
1212 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
1213 <exception cref="T:System.IO.IOException">The read operation failed.</exception>
1215 <member name="M:System.Net.Security.NegotiateStream.EndWrite(System.IAsyncResult)">
1216 <summary>Ends an asynchronous write operation that was started with a call to <see cref="M:System.Net.Security.NegotiateStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see>.</summary>
1217 <param name="asyncResult">An <see cref="T:System.IAsyncResult"></see> instance returned by a call to <see cref="M:System.Net.Security.NegotiateStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see></param>
1218 <exception cref="T:System.ArgumentNullException"><paramref name="asyncResult">asyncResult</paramref> is <see langword="null"></see>.</exception>
1219 <exception cref="T:System.ArgumentException">The asyncResult was not created by a call to <see cref="System.Net.Security.NegotiateStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)"></see>.</exception>
1220 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
1221 <exception cref="T:System.IO.IOException">The write operation failed.</exception>
1223 <member name="M:System.Net.Security.NegotiateStream.Flush">
1224 <summary>Causes any buffered data to be written to the underlying device.</summary>
1226 <member name="M:System.Net.Security.NegotiateStream.FlushAsync(System.Threading.CancellationToken)">
1227 <param name="cancellationToken"></param>
1230 <member name="P:System.Net.Security.NegotiateStream.ImpersonationLevel">
1231 <summary>Gets a value that indicates how the server can use the client&#39;s credentials.</summary>
1232 <returns>One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel"></see> values.</returns>
1233 <exception cref="T:System.InvalidOperationException">Authentication failed or has not occurred.</exception>
1235 <member name="P:System.Net.Security.NegotiateStream.IsAuthenticated">
1236 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether authentication was successful.</summary>
1237 <returns><see langword="true"></see> if successful authentication occurred; otherwise, <see langword="false"></see>.</returns>
1239 <member name="P:System.Net.Security.NegotiateStream.IsEncrypted">
1240 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether this <see cref="T:System.Net.Security.NegotiateStream"></see> uses data encryption.</summary>
1241 <returns><see langword="true"></see> if data is encrypted before being transmitted over the network and decrypted when it reaches the remote endpoint; otherwise, <see langword="false"></see>.</returns>
1243 <member name="P:System.Net.Security.NegotiateStream.IsMutuallyAuthenticated">
1244 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether both the server and the client have been authenticated.</summary>
1245 <returns><see langword="true"></see> if the server has been authenticated; otherwise, <see langword="false"></see>.</returns>
1247 <member name="P:System.Net.Security.NegotiateStream.IsServer">
1248 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the local side of the connection used by this <see cref="T:System.Net.Security.NegotiateStream"></see> was authenticated as the server.</summary>
1249 <returns><see langword="true"></see> if the local endpoint was successfully authenticated as the server side of the authenticated connection; otherwise, <see langword="false"></see>.</returns>
1251 <member name="P:System.Net.Security.NegotiateStream.IsSigned">
1252 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the data sent using this stream is signed.</summary>
1253 <returns><see langword="true"></see> if the data is signed before being transmitted; otherwise, <see langword="false"></see>.</returns>
1255 <member name="P:System.Net.Security.NegotiateStream.Length">
1256 <summary>Gets the length of the underlying stream.</summary>
1257 <returns>A <see cref="T:System.Int64"></see> that specifies the length of the underlying stream.</returns>
1258 <exception cref="T:System.NotSupportedException">Getting the value of this property is not supported when the underlying stream is a <see cref="System.Net.Sockets.NetworkStream"></see>.</exception>
1260 <member name="P:System.Net.Security.NegotiateStream.Position">
1261 <summary>Gets or sets the current position in the underlying stream.</summary>
1262 <returns>A <see cref="T:System.Int64"></see> that specifies the current position in the underlying stream.</returns>
1263 <exception cref="T:System.NotSupportedException">Setting this property is not supported.
1265 Getting the value of this property is not supported when the underlying stream is a <see cref="System.Net.Sockets.NetworkStream"></see>.</exception>
1267 <member name="M:System.Net.Security.NegotiateStream.Read(System.Byte[],System.Int32,System.Int32)">
1268 <summary>Reads data from this stream and stores it in the specified array.</summary>
1269 <param name="buffer">A <see cref="T:System.Byte"></see> array that receives the bytes read from the stream.</param>
1270 <param name="offset">A <see cref="T:System.Int32"></see> containing the zero-based location in buffer at which to begin storing the data read from this stream.</param>
1271 <param name="count">A <see cref="T:System.Int32"></see> containing the maximum number of bytes to read from the stream.</param>
1272 <returns>A <see cref="T:System.Int32"></see> value that specifies the number of bytes read from the underlying stream. When there is no more data to be read, returns 0.</returns>
1273 <exception cref="T:System.IO.IOException">The read operation failed.</exception>
1274 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
1275 <exception cref="T:System.NotSupportedException">A <see cref="System.Net.Security.NegotiateStream.Read(System.Byte[],System.Int32,System.Int32)"></see> operation is already in progress.</exception>
1277 <member name="P:System.Net.Security.NegotiateStream.ReadTimeout">
1278 <summary>Gets or sets the amount of time a read operation blocks waiting for data.</summary>
1279 <returns>A <see cref="T:System.Int32"></see> that specifies the amount of time that will elapse before a read operation fails.</returns>
1281 <member name="P:System.Net.Security.NegotiateStream.RemoteIdentity">
1282 <summary>Gets information about the identity of the remote party sharing this authenticated stream.</summary>
1283 <returns>An <see cref="T:System.Security.Principal.IIdentity"></see> object that describes the identity of the remote endpoint.</returns>
1284 <exception cref="T:System.InvalidOperationException">Authentication failed or has not occurred.</exception>
1286 <member name="M:System.Net.Security.NegotiateStream.Seek(System.Int64,System.IO.SeekOrigin)">
1287 <summary>Throws <see cref="T:System.NotSupportedException"></see>.</summary>
1288 <param name="offset">This value is ignored.</param>
1289 <param name="origin">This value is ignored.</param>
1290 <returns>Always throws a <see cref="T:System.NotSupportedException"></see>.</returns>
1291 <exception cref="T:System.NotSupportedException">Seeking is not supported on <see cref="System.Net.Security.NegotiateStream"></see>.</exception>
1293 <member name="M:System.Net.Security.NegotiateStream.SetLength(System.Int64)">
1294 <summary>Sets the length of the underlying stream.</summary>
1295 <param name="value">An <see cref="T:System.Int64"></see> value that specifies the length of the stream.</param>
1297 <member name="M:System.Net.Security.NegotiateStream.Write(System.Byte[],System.Int32,System.Int32)">
1298 <summary>Write the specified number of <see cref="T:System.Byte"></see>s to the underlying stream using the specified buffer and offset.</summary>
1299 <param name="buffer">A <see cref="T:System.Byte"></see> array that supplies the bytes written to the stream.</param>
1300 <param name="offset">An <see cref="T:System.Int32"></see> containing the zero-based location in buffer at which to begin reading bytes to be written to the stream.</param>
1301 <param name="count">A <see cref="T:System.Int32"></see> containing the number of bytes to read from buffer.</param>
1302 <exception cref="T:System.ArgumentNullException"><paramref name="buffer">buffer</paramref> is <see langword="null"></see>.</exception>
1303 <exception cref="T:System.ArgumentException"><paramref name="offset is less than 0">offset is less than 0</paramref>.
1305 <paramref name="offset">offset</paramref> is greater than the length of <paramref name="buffer">buffer</paramref>.
1307 <paramref name="offset">offset</paramref> plus count is greater than the length of <paramref name="buffer">buffer</paramref>.</exception>
1308 <exception cref="T:System.IO.IOException">The write operation failed.
1310 Encryption is in use, but the data could not be encrypted.</exception>
1311 <exception cref="T:System.NotSupportedException">There is already a write operation in progress.</exception>
1312 <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
1313 <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
1315 <member name="P:System.Net.Security.NegotiateStream.WriteTimeout">
1316 <summary>Gets or sets the amount of time a write operation blocks waiting for data.</summary>
1317 <returns>A <see cref="T:System.Int32"></see> that specifies the amount of time that will elapse before a write operation fails.</returns>
1319 <member name="T:System.Net.Security.LocalCertificateSelectionCallback">
1320 <summary>Selects the local Secure Sockets Layer (SSL) certificate used for authentication.</summary>
1321 <param name="sender">An object that contains state information for this validation.</param>
1322 <param name="targetHost">The host server specified by the client.</param>
1323 <param name="localCertificates">An <see cref="T:System.Security.Cryptography.X509Certificates.X509CertificateCollection"></see> containing local certificates.</param>
1324 <param name="remoteCertificate">The certificate used to authenticate the remote party.</param>
1325 <param name="acceptableIssuers">A <see cref="T:System.String"></see> array of certificate issuers acceptable to the remote party.</param>
1326 <returns>An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate"></see> used for establishing an SSL connection.</returns>
1328 <member name="T:System.Net.Security.EncryptionPolicy">
1329 <summary>The EncryptionPolicy to use.</summary>
1331 <member name="F:System.Net.Security.EncryptionPolicy.AllowNoEncryption">
1332 <summary>Prefer that full encryption be used, but allow a NULL cipher (no encryption) if the server agrees.</summary>
1335 <member name="F:System.Net.Security.EncryptionPolicy.NoEncryption">
1336 <summary>Allow no encryption and request that a NULL cipher be used if the other endpoint can handle a NULL cipher.</summary>
1339 <member name="F:System.Net.Security.EncryptionPolicy.RequireEncryption">
1340 <summary>Require encryption and never allow a NULL cipher.</summary>
1343 <member name="T:System.Net.Security.AuthenticatedStream">
1344 <summary>Provides methods for passing credentials across a stream and requesting or performing authentication for client-server applications.</summary>
1346 <member name="M:System.Net.Security.AuthenticatedStream.#ctor(System.IO.Stream,System.Boolean)">
1347 <summary>Initializes a new instance of the <see cref="T:System.Net.Security.AuthenticatedStream"></see> class.</summary>
1348 <param name="innerStream">A <see cref="T:System.IO.Stream"></see> object used by the <see cref="T:System.Net.Security.AuthenticatedStream"></see> for sending and receiving data.</param>
1349 <param name="leaveInnerStreamOpen">A <see cref="T:System.Boolean"></see> that indicates whether closing this <see cref="T:System.Net.Security.AuthenticatedStream"></see> object also closes innerStream.</param>
1350 <exception cref="T:System.ArgumentNullException"><paramref name="innerStream">innerStream</paramref> is <see langword="null"></see>.
1352 <paramref name="innerStream">innerStream</paramref> is equal to <see cref="System.IO.Stream.Null"></see>.</exception>
1354 <member name="M:System.Net.Security.AuthenticatedStream.Dispose(System.Boolean)">
1355 <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Security.AuthenticatedStream"></see> and optionally releases the managed resources.</summary>
1356 <param name="disposing"><see langword="true"></see> to release both managed and unmanaged resources; <see langword="false"></see> to release only unmanaged resources.</param>
1358 <member name="P:System.Net.Security.AuthenticatedStream.InnerStream">
1359 <summary>Gets the stream used by this <see cref="T:System.Net.Security.AuthenticatedStream"></see> for sending and receiving data.</summary>
1360 <returns>A <see cref="T:System.IO.Stream"></see> object.</returns>
1362 <member name="P:System.Net.Security.AuthenticatedStream.IsAuthenticated">
1363 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether authentication was successful.</summary>
1364 <returns><see langword="true"></see> if successful authentication occurred; otherwise, <see langword="false"></see>.</returns>
1366 <member name="P:System.Net.Security.AuthenticatedStream.IsEncrypted">
1367 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether data sent using this <see cref="T:System.Net.Security.AuthenticatedStream"></see> is encrypted.</summary>
1368 <returns><see langword="true"></see> if data is encrypted before being transmitted over the network and decrypted when it reaches the remote endpoint; otherwise, <see langword="false"></see>.</returns>
1370 <member name="P:System.Net.Security.AuthenticatedStream.IsMutuallyAuthenticated">
1371 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether both server and client have been authenticated.</summary>
1372 <returns><see langword="true"></see> if the client and server have been authenticated; otherwise, <see langword="false"></see>.</returns>
1374 <member name="P:System.Net.Security.AuthenticatedStream.IsServer">
1375 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the local side of the connection was authenticated as the server.</summary>
1376 <returns><see langword="true"></see> if the local endpoint was authenticated as the server side of a client-server authenticated connection; <see langword="false"></see> if the local endpoint was authenticated as the client.</returns>
1378 <member name="P:System.Net.Security.AuthenticatedStream.IsSigned">
1379 <summary>Gets a <see cref="T:System.Boolean"></see> value that indicates whether the data sent using this stream is signed.</summary>
1380 <returns><see langword="true"></see> if the data is signed before being transmitted; otherwise, <see langword="false"></see>.</returns>
1382 <member name="P:System.Net.Security.AuthenticatedStream.LeaveInnerStreamOpen">
1383 <summary>Gets whether the stream used by this <see cref="T:System.Net.Security.AuthenticatedStream"></see> for sending and receiving data has been left open.</summary>
1384 <returns><see langword="true"></see> if the inner stream has been left open; otherwise, <see langword="false"></see>.</returns>
1386 <member name="T:System.Security.Authentication.InvalidCredentialException">
1387 <summary>The exception that is thrown when authentication fails for an authentication stream and cannot be retried.</summary>
1389 <member name="M:System.Security.Authentication.InvalidCredentialException.#ctor">
1390 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.InvalidCredentialException"></see> class with no message.</summary>
1392 <member name="M:System.Security.Authentication.InvalidCredentialException.#ctor(System.String)">
1393 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.InvalidCredentialException"></see> class with the specified message.</summary>
1394 <param name="message">A <see cref="T:System.String"></see> that describes the authentication failure.</param>
1396 <member name="M:System.Security.Authentication.InvalidCredentialException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
1397 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.InvalidCredentialException"></see> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> and <see cref="T:System.Runtime.Serialization.StreamingContext"></see> classes.</summary>
1398 <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> instance that contains the information required to deserialize the new <see cref="T:System.Security.Authentication.InvalidCredentialException"></see> instance.</param>
1399 <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext"></see> instance.</param>
1401 <member name="M:System.Security.Authentication.InvalidCredentialException.#ctor(System.String,System.Exception)">
1402 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.InvalidCredentialException"></see> class with the specified message and inner exception.</summary>
1403 <param name="message">A <see cref="T:System.String"></see> that describes the authentication failure.</param>
1404 <param name="innerException">The <see cref="T:System.Exception"></see> that is the cause of the current exception.</param>
1406 <member name="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection">
1407 <summary>The <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> class is a read-only collection of service principal names.</summary>
1409 <member name="M:System.Security.Authentication.ExtendedProtection.ServiceNameCollection.#ctor(System.Collections.ICollection)">
1410 <summary>Initializes a new read-only instance of the <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> class based on an existing <see cref="T:System.Collections.ICollection"></see>.</summary>
1411 <param name="items">An instance of the <see cref="T:System.Collections.ICollection"></see> class that contains the specified values of service names to be used to initialize the class.</param>
1412 <exception cref="T:System.ArgumentNullException"><paramref name="item">item</paramref> is <see langword="null"></see>.</exception>
1413 <exception cref="T:System.ArgumentException"><paramref name="item">item</paramref> is empty.</exception>
1415 <member name="M:System.Security.Authentication.ExtendedProtection.ServiceNameCollection.Contains(System.String)">
1416 <summary>Returns a value indicating whether the specified string occurs within this <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> instance.</summary>
1417 <param name="searchServiceName">The string to seek.</param>
1418 <returns>Returns <see cref="T:System.Boolean"></see>.
1419 <see langword="true"></see> if the <paramref name="searchServiceName">searchServiceName</paramref> parameter occurs within this <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> instance; otherwise, <see langword="false"></see>.</returns>
1421 <member name="P:System.Security.Authentication.ExtendedProtection.ServiceNameCollection.Count">
1424 <member name="M:System.Security.Authentication.ExtendedProtection.ServiceNameCollection.GetEnumerator">
1427 <member name="M:System.Security.Authentication.ExtendedProtection.ServiceNameCollection.Merge(System.Collections.IEnumerable)">
1428 <summary>Merges the current <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> with the specified values to create a new <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> containing the union.</summary>
1429 <param name="serviceNames">An instance of the <see cref="T:System.Collections.IEnumerable"></see> class that contains the specified values of service names to be merged.</param>
1430 <returns>A new <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> instance that contains the union of the existing <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> instance merged with the specified values.</returns>
1431 <exception cref="T:System.ArgumentNullException"><paramref name="serviceNames">serviceNames</paramref> is <see langword="null"></see>.</exception>
1432 <exception cref="T:System.ArgumentException"><paramref name="serviceNames">serviceNames</paramref> is empty.</exception>
1434 <member name="M:System.Security.Authentication.ExtendedProtection.ServiceNameCollection.Merge(System.String)">
1435 <summary>Merges the current <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> with the specified values to create a new <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> containing the union.</summary>
1436 <param name="serviceName">A string that contains the specified values of service names to be used to initialize the class.</param>
1437 <returns>A new <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> instance that contains the union of the existing <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> instance merged with the specified values.</returns>
1438 <exception cref="T:System.ArgumentNullException"><paramref name="serviceNames">serviceNames</paramref> is <see langword="null"></see>.</exception>
1439 <exception cref="T:System.ArgumentException"><paramref name="serviceNames">serviceNames</paramref> is empty.</exception>
1441 <member name="M:System.Security.Authentication.ExtendedProtection.ServiceNameCollection.System#Collections#ICollection#CopyTo(System.Array,System.Int32)">
1442 <param name="array"></param>
1443 <param name="index"></param>
1445 <member name="P:System.Security.Authentication.ExtendedProtection.ServiceNameCollection.System#Collections#ICollection#IsSynchronized">
1448 <member name="P:System.Security.Authentication.ExtendedProtection.ServiceNameCollection.System#Collections#ICollection#SyncRoot">
1451 <member name="T:System.Security.Authentication.ExtendedProtection.ProtectionScenario">
1452 <summary>The <see cref="T:System.Security.Authentication.ExtendedProtection.ProtectionScenario"></see> enumeration specifies the protection scenario enforced by the policy.</summary>
1454 <member name="F:System.Security.Authentication.ExtendedProtection.ProtectionScenario.TransportSelected">
1455 <summary>The transport will select between a secure and standard protection scenario depending on the type of channel used. For secure protection, integrated Windows authentication is wrapped in a secure channel and has an exactly matching channel binding token with no Service Provider Name (SPN) validation. For standard protection, integrated Windows authentication is optionally wrapped in a secure channel with an optional channel binding token and SPN validation is required. So if the request comes through a secure channel, the channel binding token (CBT) is checked, otherwise the SPN is checked.</summary>
1458 <member name="F:System.Security.Authentication.ExtendedProtection.ProtectionScenario.TrustedProxy">
1459 <summary>Integrated Windows authentication is wrapped in a secure channel terminated by a trusted proxy and has a channel binding token with SPN validation required. This requires the presence of a CBT, but the CBT is not checked while the SPN is checked.</summary>
1462 <member name="T:System.Security.Authentication.ExtendedProtection.PolicyEnforcement">
1463 <summary>The <see cref="T:System.Security.Authentication.ExtendedProtection.PolicyEnforcement"></see> enumeration specifies when the <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> should be enforced.</summary>
1465 <member name="F:System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Always">
1466 <summary>The <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> is always enforced. Clients that don’t support extended protection will fail to authenticate.</summary>
1469 <member name="F:System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Never">
1470 <summary>The <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> is never enforced and extended protection is disabled.</summary>
1473 <member name="F:System.Security.Authentication.ExtendedProtection.PolicyEnforcement.WhenSupported">
1474 <summary>The <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> is enforced only if the client and server supports extended protection.</summary>
1477 <member name="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy">
1478 <summary>The <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> class represents the extended protection policy used by the server to validate incoming client connections.</summary>
1480 <member name="M:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.#ctor(System.Security.Authentication.ExtendedProtection.PolicyEnforcement)">
1481 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> class that specifies when the extended protection policy should be enforced.</summary>
1482 <param name="policyEnforcement">A <see cref="T:System.Security.Authentication.ExtendedProtection.PolicyEnforcement"></see> value that indicates when the extended protection policy should be enforced.</param>
1484 <member name="M:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
1485 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> class from a <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> object that contains the required data to populate the <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see>.</summary>
1486 <param name="info">A <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> instance that contains the information that is required to serialize the new <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> instance.</param>
1487 <param name="context">A <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains the source of the serialized stream that is associated with the new <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> instance.</param>
1489 <member name="M:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.#ctor(System.Security.Authentication.ExtendedProtection.PolicyEnforcement,System.Security.Authentication.ExtendedProtection.ChannelBinding)">
1490 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> class that specifies when the extended protection policy should be enforced and the channel binding token (CBT) to be used.</summary>
1491 <param name="policyEnforcement">A <see cref="T:System.Security.Authentication.ExtendedProtection.PolicyEnforcement"></see> value that indicates when the extended protection policy should be enforced.</param>
1492 <param name="customChannelBinding">A <see cref="T:System.Security.Authentication.ExtendedProtection.ChannelBinding"></see> that contains a custom channel binding to use for validation.</param>
1493 <exception cref="T:System.ArgumentException"><paramref name="policyEnforcement">policyEnforcement</paramref> is specified as <see cref="System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Never"></see>.</exception>
1494 <exception cref="T:System.ArgumentNullException"><paramref name="customChannelBinding">customChannelBinding</paramref> is <see langword="null"></see>.</exception>
1496 <member name="M:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.#ctor(System.Security.Authentication.ExtendedProtection.PolicyEnforcement,System.Security.Authentication.ExtendedProtection.ProtectionScenario,System.Collections.ICollection)">
1497 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> class that specifies when the extended protection policy should be enforced, the kind of protection enforced by the policy, and a custom Service Provider Name (SPN) list that is used to match against a client&#39;s SPN.</summary>
1498 <param name="policyEnforcement">A <see cref="T:System.Security.Authentication.ExtendedProtection.PolicyEnforcement"></see> value that indicates when the extended protection policy should be enforced.</param>
1499 <param name="protectionScenario">A <see cref="T:System.Security.Authentication.ExtendedProtection.ProtectionScenario"></see> value that indicates the kind of protection enforced by the policy.</param>
1500 <param name="customServiceNames">A <see cref="T:System.Collections.ICollection"></see> that contains the custom SPN list that is used to match against a client&#39;s SPN.</param>
1501 <exception cref="T:System.ArgumentException"><paramref name="policyEnforcement">policyEnforcement</paramref> is specified as <see cref="System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Never"></see>.</exception>
1502 <exception cref="T:System.ArgumentNullException"><paramref name="customServiceNames">customServiceNames</paramref> is <see langword="null"></see> or an empty list.</exception>
1504 <member name="M:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.#ctor(System.Security.Authentication.ExtendedProtection.PolicyEnforcement,System.Security.Authentication.ExtendedProtection.ProtectionScenario,System.Security.Authentication.ExtendedProtection.ServiceNameCollection)">
1505 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> class that specifies when the extended protection policy should be enforced, the kind of protection enforced by the policy, and a custom Service Provider Name (SPN) list that is used to match against a client&#39;s SPN.</summary>
1506 <param name="policyEnforcement">A <see cref="T:System.Security.Authentication.ExtendedProtection.PolicyEnforcement"></see> value that indicates when the extended protection policy should be enforced.</param>
1507 <param name="protectionScenario">A <see cref="T:System.Security.Authentication.ExtendedProtection.ProtectionScenario"></see> value that indicates the kind of protection enforced by the policy.</param>
1508 <param name="customServiceNames">A <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> that contains the custom SPN list that is used to match against a client&#39;s SPN.</param>
1509 <exception cref="T:System.ArgumentException"><paramref name="policyEnforcement">policyEnforcement</paramref> is specified as <see cref="System.Security.Authentication.ExtendedProtection.PolicyEnforcement.Never"></see>.</exception>
1510 <exception cref="T:System.ArgumentNullException"><paramref name="customServiceNames">customServiceNames</paramref> is <see langword="null"></see> or an empty list.</exception>
1512 <member name="P:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomChannelBinding">
1513 <summary>Gets a custom channel binding token (CBT) to use for validation.</summary>
1514 <returns>A <see cref="T:System.Security.Authentication.ExtendedProtection.ChannelBinding"></see> that contains a custom channel binding to use for validation.</returns>
1516 <member name="P:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.CustomServiceNames">
1517 <summary>Gets the custom Service Provider Name (SPN) list used to match against a client&#39;s SPN.</summary>
1518 <returns>A <see cref="T:System.Security.Authentication.ExtendedProtection.ServiceNameCollection"></see> that contains the custom SPN list that is used to match against a client&#39;s SPN.</returns>
1520 <member name="P:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.OSSupportsExtendedProtection">
1521 <summary>Indicates whether the operating system supports integrated windows authentication with extended protection.</summary>
1522 <returns><see langword="true"></see> if the operating system supports integrated windows authentication with extended protection, otherwise <see langword="false"></see>.</returns>
1524 <member name="P:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.PolicyEnforcement">
1525 <summary>Gets when the extended protection policy should be enforced.</summary>
1526 <returns>A <see cref="T:System.Security.Authentication.ExtendedProtection.PolicyEnforcement"></see> value that indicates when the extended protection policy should be enforced.</returns>
1528 <member name="P:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.ProtectionScenario">
1529 <summary>Gets the kind of protection enforced by the extended protection policy.</summary>
1530 <returns>A <see cref="T:System.Security.Authentication.ExtendedProtection.ProtectionScenario"></see> value that indicates the kind of protection enforced by the policy.</returns>
1532 <member name="M:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.ToString">
1533 <summary>Gets a string representation for the extended protection policy instance.</summary>
1534 <returns>A <see cref="T:System.String"></see> instance that contains the representation of the <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> instance.</returns>
1536 <member name="M:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
1537 <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> object with the required data to serialize an <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> object.</summary>
1538 <param name="info">A <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> object that holds the serialized data for an <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see> object.</param>
1539 <param name="context">A <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains the destination of the serialized stream that is associated with the new <see cref="T:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy"></see>.</param>
1541 <member name="T:System.Security.Authentication.AuthenticationException">
1542 <summary>The exception that is thrown when authentication fails for an authentication stream.</summary>
1544 <member name="M:System.Security.Authentication.AuthenticationException.#ctor">
1545 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.AuthenticationException"></see> class with no message.</summary>
1547 <member name="M:System.Security.Authentication.AuthenticationException.#ctor(System.String)">
1548 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.AuthenticationException"></see> class with the specified message.</summary>
1549 <param name="message">A <see cref="T:System.String"></see> that describes the authentication failure.</param>
1551 <member name="M:System.Security.Authentication.AuthenticationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
1552 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.AuthenticationException"></see> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> and <see cref="T:System.Runtime.Serialization.StreamingContext"></see> classes.</summary>
1553 <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> instance that contains the information required to deserialize the new <see cref="T:System.Security.Authentication.AuthenticationException"></see> instance.</param>
1554 <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext"></see> instance.</param>
1556 <member name="M:System.Security.Authentication.AuthenticationException.#ctor(System.String,System.Exception)">
1557 <summary>Initializes a new instance of the <see cref="T:System.Security.Authentication.AuthenticationException"></see> class with the specified message and inner exception.</summary>
1558 <param name="message">A <see cref="T:System.String"></see> that describes the authentication failure.</param>
1559 <param name="innerException">The <see cref="T:System.Exception"></see> that is the cause of the current exception.</param>