Skip to content

Commit ae470de

Browse files
Jan JahodaJan Jahodagewarren
authored
SslClientAuthenticationOptions - update documentation (#4366)
* NegotiateStream - update documentation * Fix revocation mode * Fix see reference * minor changes * Fix reference in class description * Apply PR comments * fix closing tag * apply review comments * Update xml/System.Net.Security/SslClientAuthenticationOptions.xml Co-authored-by: Genevieve Warren <[email protected]> * Remove wrong ApplicationProtocols description * RP comments * RP comments * Apply suggestions from code review Co-authored-by: Genevieve Warren <[email protected]> * Fix remark is not visible Co-authored-by: Jan Jahoda <[email protected]> Co-authored-by: Genevieve Warren <[email protected]>
1 parent 323d2e1 commit ae470de

File tree

2 files changed

+47
-19
lines changed

2 files changed

+47
-19
lines changed

xml/System.Net.Security/SslClientAuthenticationOptions.xml

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,17 @@
2323
</Base>
2424
<Interfaces />
2525
<Docs>
26-
<summary>To be added.</summary>
27-
<remarks>To be added.</remarks>
26+
<summary>Represents a client authentication property bag for the <see cref="T:System.Net.Security.SslStream" />.</summary>
27+
<remarks>
28+
<format type="text/markdown"><![CDATA[
29+
30+
## Remarks
31+
This property bag is used as argument for <xref:System.Net.Security.SslStream.AuthenticateAsClientAsync%2A> and, in .NET 5.0 and later versions, for <xref:System.Net.Security.SslStream.AuthenticateAsClient%2A>.
32+
33+
The <xref:System.Net.Http.SocketsHttpHandler> uses this property bag in the <xref: System.Net.Http.SocketsHttpHandler.SslOptions%2A> property.
34+
35+
]]></format>
36+
</remarks>
2837
</Docs>
2938
<Members>
3039
<Member MemberName=".ctor">
@@ -46,7 +55,7 @@
4655
</AssemblyInfo>
4756
<Parameters />
4857
<Docs>
49-
<summary>To be added.</summary>
58+
<summary>Initializes a new instance of the <see cref="T:System.Net.Security.SslClientAuthenticationOptions" /> class.</summary>
5059
<remarks>To be added.</remarks>
5160
</Docs>
5261
</Member>
@@ -72,8 +81,8 @@
7281
<ReturnType>System.Boolean</ReturnType>
7382
</ReturnValue>
7483
<Docs>
75-
<summary>To be added.</summary>
76-
<value>To be added.</value>
84+
<summary>Gets or sets a value that indicates whether the <see cref="T:System.Net.Security.SslStream" /> should allow SSL renegotiation.</summary>
85+
<value><see langword="true" /> to indicate that the <see cref="T:System.Net.Security.SslStream" /> allows SSL renegotiation; otherwise, <see langword="false" />. The default value is <see langword="true" />.</value>
7786
<remarks>To be added.</remarks>
7887
</Docs>
7988
</Member>
@@ -99,7 +108,7 @@
99108
<ReturnType>System.Collections.Generic.List&lt;System.Net.Security.SslApplicationProtocol&gt;</ReturnType>
100109
</ReturnValue>
101110
<Docs>
102-
<summary>To be added.</summary>
111+
<summary>Gets or sets a list of ALPN protocols.</summary>
103112
<value>To be added.</value>
104113
<remarks>To be added.</remarks>
105114
</Docs>
@@ -126,9 +135,20 @@
126135
<ReturnType>System.Security.Cryptography.X509Certificates.X509RevocationMode</ReturnType>
127136
</ReturnValue>
128137
<Docs>
129-
<summary>To be added.</summary>
130-
<value>To be added.</value>
131-
<remarks>To be added.</remarks>
138+
<summary>Gets or sets the certificate revocation mode for certificate validation.</summary>
139+
<value>One of the values in <see cref="T:System.Security.Cryptography.X509Certificates.X509RevocationMode" />: <see langword="NoCheck" />, <see langword="Online" />, or <see langword="Offline" />. The default is <see langword="Online" />.</value>
140+
<remarks>
141+
<format type="text/markdown"><![CDATA[
142+
143+
## Remarks
144+
When using certificates, the system validates that the client certificate is not revoked by checking that the client certificate is not in the revoked certificate list. This validation can be performed by checking online or against a cached revocation list. You can trun off revocation checking by setting this property to <xref:System.Security.Cryptography.X509Certificates.X509RevocationMode.NoCheck>.
145+
146+
For more information, see [Working with Certificates](/dotnet/framework/wcf/feature-details/working-with-certificates).
147+
148+
]]></format>
149+
</remarks>
150+
<exception cref="T:System.ArgumentNullException">
151+
The value contains an invalid enumeration value.</exception>
132152
</Docs>
133153
</Member>
134154
<Member MemberName="CipherSuitesPolicy">
@@ -179,9 +199,17 @@
179199
<ReturnType>System.Security.Cryptography.X509Certificates.X509CertificateCollection</ReturnType>
180200
</ReturnValue>
181201
<Docs>
182-
<summary>To be added.</summary>
202+
<summary>A collection of certificates to be considered for the client's authentication to the server.</summary>
183203
<value>To be added.</value>
184-
<remarks>To be added.</remarks>
204+
<remarks>
205+
<format type="text/markdown"><![CDATA[
206+
207+
## Remarks
208+
209+
<xref:System.Net.Security.LocalCertificateSelectionCallback> can be used to select a specific certificate to offer to the server.
210+
211+
]]></format>
212+
</remarks>
185213
</Docs>
186214
</Member>
187215
<Member MemberName="EnabledSslProtocols">
@@ -206,8 +234,8 @@
206234
<ReturnType>System.Security.Authentication.SslProtocols</ReturnType>
207235
</ReturnValue>
208236
<Docs>
209-
<summary>To be added.</summary>
210-
<value>To be added.</value>
237+
<summary>Gets or sets the value that represents the protocol versions offered by the client to the server during authentication.</summary>
238+
<value>The default value is <see cref="F:System.Security.Authentication.SslProtocols.None" />, which is the recommended value. For more information, see <see cref="T:System.Security.Authentication.SslProtocols" />.</value>
211239
<remarks>To be added.</remarks>
212240
</Docs>
213241
</Member>
@@ -233,8 +261,8 @@
233261
<ReturnType>System.Net.Security.EncryptionPolicy</ReturnType>
234262
</ReturnValue>
235263
<Docs>
236-
<summary>To be added.</summary>
237-
<value>To be added.</value>
264+
<summary>Gets or sets the encryption policy.</summary>
265+
<value>The default value is <see cref="F:System.Net.Security.EncryptionPolicy.RequireEncryption" />.</value>
238266
<remarks>To be added.</remarks>
239267
</Docs>
240268
</Member>
@@ -260,7 +288,7 @@
260288
<ReturnType>System.Net.Security.LocalCertificateSelectionCallback</ReturnType>
261289
</ReturnValue>
262290
<Docs>
263-
<summary>To be added.</summary>
291+
<summary>Gets or sets a <see cref="T:System.Net.Security.LocalCertificateSelectionCallback" /> delegate that's responsible for selecting the client authentication certificate used for authentication.</summary>
264292
<value>To be added.</value>
265293
<remarks>To be added.</remarks>
266294
</Docs>
@@ -287,7 +315,7 @@
287315
<ReturnType>System.Net.Security.RemoteCertificateValidationCallback</ReturnType>
288316
</ReturnValue>
289317
<Docs>
290-
<summary>To be added.</summary>
318+
<summary>Gets or sets a <see cref="T:System.Net.Security.RemoteCertificateValidationCallback" /> delegate that's responsible for validating the certificate supplied by the remote party.</summary>
291319
<value>To be added.</value>
292320
<remarks>To be added.</remarks>
293321
</Docs>
@@ -314,7 +342,7 @@
314342
<ReturnType>System.String</ReturnType>
315343
</ReturnValue>
316344
<Docs>
317-
<summary>To be added.</summary>
345+
<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>
318346
<value>To be added.</value>
319347
<remarks>To be added.</remarks>
320348
</Docs>

xml/System.Net.Security/SslServerAuthenticationOptions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
<ReturnType>System.Security.Authentication.SslProtocols</ReturnType>
226226
</ReturnValue>
227227
<Docs>
228-
<summary>Gets or sets the <see cref="T:System.Security.Authentication.SslProtocols" /> value that represents protocols used for authentication.</summary>
228+
<summary>Gets or sets a value that represents protocol versions used by the server to match the client protocol version during authentication.</summary>
229229
<value>The default value is <see cref="F:System.Security.Authentication.SslProtocols.None" />, which is the recommended value. See <see cref="T:System.Security.Authentication.SslProtocols" /> for more details.</value>
230230
<remarks>To be added.</remarks>
231231
</Docs>

0 commit comments

Comments
 (0)