Skip to content

Commit 9ae564c

Browse files
carlossanlopRon Petrusha
authored andcommitted
Document System.Security.Cryptography.Pkcs.SubjectIdentifier.MatchesCertificate (dotnet#2939)
* Document System.Security.Cryptography.Pkcs.SubjectIdentifier.MatchesCertificate * suggestions by rpetrusha Co-Authored-By: Ron Petrusha <ronpet@microsoft.com> * single paragraph * Update xml/System.Security.Cryptography.Pkcs/SubjectIdentifier.xml * suggestion by krwq * suggestion by krwq Co-Authored-By: Krzysztof Wicher <mordotymoja@gmail.com> * Fixed broken xrefs
1 parent ec7b039 commit 9ae564c

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

xml/System.Security.Cryptography.Pkcs/SubjectIdentifier.xml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,19 @@
5252
<Parameter Name="certificate" Type="System.Security.Cryptography.X509Certificates.X509Certificate2" Index="0" FrameworkAlternate="dotnet-plat-ext-3.0" />
5353
</Parameters>
5454
<Docs>
55-
<param name="certificate">To be added.</param>
56-
<summary>To be added.</summary>
57-
<returns>To be added.</returns>
58-
<remarks>To be added.</remarks>
55+
<param name="certificate">The certificate to match with the current subject identifier instance.</param>
56+
<summary>Verifies if the specified certificate's subject identifier matches current subject identifier instance.</summary>
57+
<returns><see langword="true" /> if the specified certificate's identifier matches the current subject identifier instance; otherwise, <see langword="false" />.</returns>
58+
<remarks>
59+
<format type="text/markdown"><![CDATA[
60+
61+
## Remarks
62+
63+
If the current subject identifier instance is of type <xref:System.Security.Cryptography.Pkcs.SubjectIdentifierType.IssuerAndSerialNumber?displayProperty=nameWithType>, this method compares the current instance's X09 issuer serial number and issuer name with the specified certificate's issuer serial number and issuer name. If the current subject identifier instance is of type <xref:System.Security.Cryptography.Pkcs.SubjectIdentifierType.SubjectKeyIdentifier?displayProperty=nameWithType>, this method compares the current instance's subject key identifier with the specified certificate's subject key identifier.
64+
65+
]]></format>
66+
</remarks>
67+
<exception cref="T:System.Security.Cryptography.CryptographicException">Invalid subject identifier type.</exception>
5968
</Docs>
6069
</Member>
6170
<Member MemberName="Type">
@@ -135,4 +144,4 @@
135144
</Docs>
136145
</Member>
137146
</Members>
138-
</Type>
147+
</Type>

0 commit comments

Comments
 (0)