Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions xml/System.Security.Cryptography.Xml/SignedXml.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Given the risks of external references, <xref:System.Security.Cryptography.Xml.S

## Instances are single-use

A <xref:System.Security.Cryptography.Xml.SignedXml> instance is not intended to be reused across multiple signing or verification operations. Starting in .NET 12, calling <xref:System.Security.Cryptography.Xml.SignedXml.ComputeSignature*> or <xref:System.Security.Cryptography.Xml.SignedXml.CheckSignature*> more than once on the same instance, or calling <xref:System.Security.Cryptography.Xml.SignedXml.LoadXml*>, <xref:System.Security.Cryptography.Xml.SignedXml.AddReference*>, or <xref:System.Security.Cryptography.Xml.SignedXml.AddObject*> after a call to <xref:System.Security.Cryptography.Xml.SignedXml.ComputeSignature*> or <xref:System.Security.Cryptography.Xml.SignedXml.CheckSignature*> has begun on the same instance, throws <xref:System.InvalidOperationException>. This applies even if the earlier call itself threw an exception. Create a new <xref:System.Security.Cryptography.Xml.SignedXml> instance for each signing or verification operation.
A <xref:System.Security.Cryptography.Xml.SignedXml> instance is not intended to be reused across multiple signing or verification operations. Reusing an instance can produce incorrect results. Create a new <xref:System.Security.Cryptography.Xml.SignedXml> instance for each signing or verification operation.

]]></format>
</remarks>
Expand Down Expand Up @@ -447,7 +447,6 @@ The following code example shows how to sign and verify a single element of an X

]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Security.Cryptography.Xml.SignedXml" /> instance has already been used to compute or verify a signature.</exception>
</Docs>
</Member>
<Member MemberName="AddReference">
Expand Down Expand Up @@ -515,7 +514,6 @@ The following code example shows how to sign and verify a single element of an X

]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Security.Cryptography.Xml.SignedXml" /> instance has already been used to compute or verify a signature.</exception>
</Docs>
</Member>
<MemberGroup MemberName="CheckSignature">
Expand Down Expand Up @@ -608,7 +606,6 @@ The following code example shows how to sign and verify a single element of an X
-or

The hash algorithm could not be created.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Security.Cryptography.Xml.SignedXml" /> instance has already been used to compute or verify a signature.</exception>
</Docs>
</Member>
<Member MemberName="CheckSignature">
Expand Down Expand Up @@ -674,7 +671,6 @@ The following code example shows how to sign and verify a single element of an X
-or

The hash algorithm could not be created.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Security.Cryptography.Xml.SignedXml" /> instance has already been used to compute or verify a signature.</exception>
</Docs>
</Member>
<Member MemberName="CheckSignature">
Expand Down Expand Up @@ -740,7 +736,6 @@ The following code example shows how to sign and verify a single element of an X
-or-

The cryptographic transform used to check the signature could not be created.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Security.Cryptography.Xml.SignedXml" /> instance has already been used to compute or verify a signature.</exception>
</Docs>
</Member>
<Member MemberName="CheckSignature">
Expand Down Expand Up @@ -803,7 +798,6 @@ The X.509 certificate is verified. The <xref:System.Security.Cryptography.Xml.Si
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="certificate" /> parameter is <see langword="null" />.</exception>
<exception cref="T:System.Security.Cryptography.CryptographicException">A signature description could not be created for the <paramref name="certificate" /> parameter.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Security.Cryptography.Xml.SignedXml" /> instance has already been used to compute or verify a signature.</exception>
</Docs>
</Member>
<Member MemberName="CheckSignatureReturningKey">
Expand Down Expand Up @@ -877,7 +871,6 @@ The X.509 certificate is verified. The <xref:System.Security.Cryptography.Xml.Si
-or

The hash algorithm could not be created.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Security.Cryptography.Xml.SignedXml" /> instance has already been used to compute or verify a signature.</exception>
</Docs>
</Member>
<MemberGroup MemberName="ComputeSignature">
Expand Down Expand Up @@ -955,7 +948,6 @@ The X.509 certificate is verified. The <xref:System.Security.Cryptography.Xml.Si
-or-

The key could not be loaded.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Security.Cryptography.Xml.SignedXml" /> instance has already been used to compute or verify a signature.</exception>
</Docs>
</Member>
<Member MemberName="ComputeSignature">
Expand Down Expand Up @@ -1026,7 +1018,6 @@ The X.509 certificate is verified. The <xref:System.Security.Cryptography.Xml.Si
-or-

The cryptographic transform used to check the signature could not be created.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Security.Cryptography.Xml.SignedXml" /> instance has already been used to compute or verify a signature.</exception>
</Docs>
</Member>
<Member MemberName="EncryptedXml">
Expand Down Expand Up @@ -1331,7 +1322,6 @@ The X.509 certificate is verified. The <xref:System.Security.Cryptography.Xml.Si
-or-

The <paramref name="value" /> parameter does not contain a valid <see cref="P:System.Security.Cryptography.Xml.SignedXml.SignedInfo" /> property.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Security.Cryptography.Xml.SignedXml" /> instance has already been used to compute or verify a signature.</exception>
</Docs>
</Member>
<Member MemberName="m_signature">
Expand Down Expand Up @@ -3060,4 +3050,3 @@ The X.509 certificate is verified. The <xref:System.Security.Cryptography.Xml.Si
</Member>
</Members>
</Type>

Loading