Skip to content

Commit 2053bbd

Browse files
bartonjsRon Petrusha
authored andcommitted
Document Pkcs9LocalKeyId (dotnet#2934)
* Document Pkcs9LocalKeyId * Apply suggestions from code review
1 parent cf989b2 commit 2053bbd

File tree

1 file changed

+29
-11
lines changed

1 file changed

+29
-11
lines changed

xml/System.Security.Cryptography.Pkcs/Pkcs9LocalKeyId.xml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@
1515
</Base>
1616
<Interfaces />
1717
<Docs>
18-
<summary>To be added.</summary>
19-
<remarks>To be added.</remarks>
18+
<summary>Represents the LocalKeyId attribute from PKCS#9.</summary>
19+
<remarks>
20+
<format type="text/markdown"><![CDATA[
21+
22+
## Remarks
23+
24+
The primary use of the LocalKeyId attribute is to associate an X.509 Public Key Certificate and its matching asymmetric private key in a PKCS#12 PFX file.
25+
26+
]]></format>
27+
</remarks>
2028
</Docs>
2129
<Members>
2230
<Member MemberName=".ctor">
@@ -33,7 +41,7 @@
3341
</AssemblyInfo>
3442
<Parameters />
3543
<Docs>
36-
<summary>To be added.</summary>
44+
<summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Pkcs.Pkcs9LocalKeyId"/> class with an empty key identifier value.</summary>
3745
<remarks>To be added.</remarks>
3846
</Docs>
3947
</Member>
@@ -54,9 +62,10 @@
5462
<Parameter Name="keyId" Type="System.Byte[]" />
5563
</Parameters>
5664
<Docs>
57-
<param name="keyId">To be added.</param>
58-
<summary>To be added.</summary>
65+
<param name="keyId">A byte array containing the key identifier.</param>
66+
<summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Pkcs.Pkcs9LocalKeyId"/> class with a key identifier specified by a byte array.</summary>
5967
<remarks>To be added.</remarks>
68+
<altmember cref="P:System.Security.Cryptography.Pkcs.Pkcs9LocalKeyId.KeyId"/>
6069
</Docs>
6170
</Member>
6271
<Member MemberName=".ctor">
@@ -76,9 +85,10 @@
7685
<Parameter Name="keyId" Type="System.ReadOnlySpan&lt;System.Byte&gt;" />
7786
</Parameters>
7887
<Docs>
79-
<param name="keyId">To be added.</param>
80-
<summary>To be added.</summary>
88+
<param name="keyId">A byte array containing the key identifier.</param>
89+
<summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Pkcs.Pkcs9LocalKeyId"/> class with a key identifier specified by a byte span.</summary>
8190
<remarks>To be added.</remarks>
91+
<altmember cref="P:System.Security.Cryptography.Pkcs.Pkcs9LocalKeyId.KeyId"/>
8292
</Docs>
8393
</Member>
8494
<Member MemberName="KeyId">
@@ -98,10 +108,18 @@
98108
<ReturnType>System.ReadOnlyMemory&lt;System.Byte&gt;</ReturnType>
99109
</ReturnValue>
100110
<Docs>
101-
<summary>To be added.</summary>
102-
<value>To be added.</value>
103-
<remarks>To be added.</remarks>
111+
<summary>Gets a memory value containing the key identifier from this attribute.</summary>
112+
<value>A memory value containing the key identifier from this attribute.</value>
113+
<remarks>
114+
<format type="text/markdown"><![CDATA[
115+
116+
## Remarks
117+
118+
Local key identifiers have no inherent semantic meaning to a PKCS#12 PFX. A private key is considered to be associated with the a certificate if both values have a LocalKeyId attribute and the attributes' KeyId values are equal on a byte-by-byte basis.
119+
120+
]]></format>
121+
</remarks>
104122
</Docs>
105123
</Member>
106124
</Members>
107-
</Type>
125+
</Type>

0 commit comments

Comments
 (0)