|
1399 | 1399 | ]]></format>
|
1400 | 1400 | </remarks>
|
1401 | 1401 | <exception cref="T:System.ArgumentNullException">
|
1402 |
| - Either <see cref="P:System.Net.Security.SslServerAuthenticationOptions.ServerCertificateSelectionCallback" /> or <see cref="P:System.Net.Security.SslServerAuthenticationOptions.ServerCertificate" /> is <see langword="null" /> and <see cref="T:System.Net.Security.LocalCertificateSelectionCallback" /> is not set in the <see langword="SslStream" /> constructor.</exception> |
| 1402 | + Either <see cref="P:System.Net.Security.SslServerAuthenticationOptions.ServerCertificateSelectionCallback" /> or <see cref="P:System.Net.Security.SslServerAuthenticationOptions.ServerCertificate" /> or <see cref="P:System.Net.Security.SslServerAuthenticationOptions.ServerCertificateContext" > is <see langword="null" /> and <see cref="T:System.Net.Security.LocalCertificateSelectionCallback" /> is not set in the <see langword="SslStream" /> constructor.</exception> |
1403 | 1403 | <exception cref="T:System.ArgumentNullException">
|
1404 | 1404 | <paramref name="sslServerAuthenticationOptions" /> is <see langword="null" />.</exception>
|
1405 | 1405 | <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception>
|
|
1438 | 1438 | <Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="2" FrameworkAlternate="net-5.0" />
|
1439 | 1439 | </Parameters>
|
1440 | 1440 | <Docs>
|
1441 |
| - <param name="optionsCallback">To be added.</param> |
1442 |
| - <param name="state">To be added.</param> |
1443 |
| - <param name="cancellationToken">To be added.</param> |
1444 |
| - <summary>To be added.</summary> |
1445 |
| - <returns>To be added.</returns> |
1446 |
| - <remarks>To be added.</remarks> |
| 1441 | + <param name="optionsCallback">Gets or sets the ServerOptionsSelectionCallback callback.</param> |
| 1442 | + <param name="state">The state object passed as state parameter of <see cref="T:System.Net.Security.ServerOptionsSelectionCallback" /> when the callback provided in <paramref name="optionsCallback" /> is invoked.</param> |
| 1443 | + <param name="cancellationToken">The token to monitor for cancellation requests.</param> |
| 1444 | + <summary>Called by servers to authenticate the server and optionally the client in a client-server connection as an asynchronous operation. The authentication process uses information returned by the <paramref name="optionsCallback" />.</summary> |
| 1445 | + <returns>The task object representing the asynchronous operation.</returns> |
| 1446 | + <remarks> |
| 1447 | + <format type="text/markdown"><![CDATA[ |
| 1448 | + |
| 1449 | +## Remarks |
| 1450 | + |
| 1451 | + If the authentication fails, you receive a <xref:System.Security.Authentication.AuthenticationException>, and this <xref:System.Net.Security.SslStream> is no longer useable. You should close this object and remove all references to it so that it can be collected by the garbage collector. |
| 1452 | + |
| 1453 | + ]]></format> |
| 1454 | + </remarks> |
| 1455 | + <exception cref="T:System.ArgumentNullException"> |
| 1456 | + Either <see cref="P:System.Net.Security.SslServerAuthenticationOptions.ServerCertificateSelectionCallback" /> or <see cref="P:System.Net.Security.SslServerAuthenticationOptions.ServerCertificate" /> or <see cref="P:System.Net.Security.SslServerAuthenticationOptions.ServerCertificateContext" > is <see langword="null" /> and <see cref="T:System.Net.Security.LocalCertificateSelectionCallback" /> is not set in the <see langword="SslStream" /> constructor.</exception> |
| 1457 | + <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed and left this object in an unusable state.</exception> |
| 1458 | + <exception cref="T:System.InvalidOperationException">Authentication has already occurred. |
| 1459 | + |
| 1460 | + -or- |
| 1461 | + |
| 1462 | + Client authentication using this <see cref="T:System.Net.Security.SslStream" /> was tried previously. |
| 1463 | + |
| 1464 | + -or- |
| 1465 | + |
| 1466 | + Authentication is already in progress.</exception> |
| 1467 | + <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception> |
1447 | 1468 | </Docs>
|
1448 | 1469 | </Member>
|
1449 | 1470 | <Member MemberName="AuthenticateAsServerAsync">
|
@@ -4346,7 +4367,7 @@ This property gets the cipher suite that is going to be used in the communicatio
|
4346 | 4367 | <ReturnType>System.String</ReturnType>
|
4347 | 4368 | </ReturnValue>
|
4348 | 4369 | <Docs>
|
4349 |
| - <summary>To be added.</summary> |
| 4370 | + <summary>Gets or sets the name of the server the client is trying to connect to. That name is used for server certificate validation. It can be a DNS name or an IP address.</summary> |
4350 | 4371 | <value>To be added.</value>
|
4351 | 4372 | <remarks>To be added.</remarks>
|
4352 | 4373 | </Docs>
|
|
0 commit comments