|
1665 | 1665 | <summary>Returns the hash value for the X.509v3 certificate that is computed by using the specified cryptographic hash algorithm.</summary>
|
1666 | 1666 | <returns>A byte array that contains the hash value for the X.509 certificate.</returns>
|
1667 | 1667 | <remarks>To be added.</remarks>
|
| 1668 | + <exception cref="T:System.ArgumentException"> |
| 1669 | + <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or an empty string.</exception> |
| 1670 | + <exception cref="T:System.Security.Cryptography.CryptographicException"> |
| 1671 | + <paramref name="hashAlgorithm" /> is not a known hash algorithm.</exception> |
| 1672 | + <altmember cref="M:System.Security.Cryptography.X509Certificates.X509Certificate.TryGetCertHash(System.Security.Cryptography.HashAlgorithmName,System.Span{System.Byte},System.Int32@)" /> |
1668 | 1673 | </Docs>
|
1669 | 1674 | </Member>
|
1670 | 1675 | <MemberGroup MemberName="GetCertHashString">
|
|
1751 | 1756 | <summary>Returns a hexadecimal string containing the hash value for the X.509v3 certificate computed using the specified cryptographic hash algorithm.</summary>
|
1752 | 1757 | <returns>The hexadecimal string representation of the X.509 certificate hash value.</returns>
|
1753 | 1758 | <remarks>To be added.</remarks>
|
| 1759 | + <exception cref="T:System.ArgumentException"> |
| 1760 | + <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or an empty string.</exception> |
| 1761 | + <exception cref="T:System.Security.Cryptography.CryptographicException"> |
| 1762 | + <paramref name="hashAlgorithm" /> is not a known hash algorithm.</exception> |
1754 | 1763 | </Docs>
|
1755 | 1764 | </Member>
|
1756 | 1765 | <Member MemberName="GetEffectiveDateString">
|
|
2320 | 2329 | <returns>The public key for the X.509 certificate as an array of bytes.</returns>
|
2321 | 2330 | <remarks>
|
2322 | 2331 | <format type="text/markdown"><![CDATA[
|
| 2332 | +## Remarks |
| 2333 | +This value corresponds to the contents of the `subjectPublicKey` field of the SubjectPublicKeyInfo data within the certificate. |
2323 | 2334 |
|
2324 | 2335 | ## Examples
|
2325 | 2336 | The following example uses the <xref:System.Security.Cryptography.X509Certificates.X509Certificate.GetPublicKey%2A> method to return a certificate's public key as an array of bytes and displays it to the console.
|
|
2368 | 2379 | <returns>The public key for the X.509 certificate as a hexadecimal string.</returns>
|
2369 | 2380 | <remarks>
|
2370 | 2381 | <format type="text/markdown"><![CDATA[
|
| 2382 | +## Remarks |
| 2383 | +This value corresponds to the contents of the `subjectPublicKey` field of the SubjectPublicKeyInfo data within the certificate. |
2371 | 2384 |
|
2372 | 2385 | ## Examples
|
2373 | 2386 | The following example uses the <xref:System.Security.Cryptography.X509Certificates.X509Certificate.GetPublicKeyString%2A> method to return a certificate's public key as a string and displays it to the console.
|
|
2420 | 2433 | <returns>A byte array containing the X.509 certificate data.</returns>
|
2421 | 2434 | <remarks>
|
2422 | 2435 | <format type="text/markdown"><![CDATA[
|
| 2436 | +## Remarks |
| 2437 | +The output of this method is equivalent to the output of the <xref:System.Security.Cryptography.X509Certificates.X509Certificate.Export%2A> method with an output encoding of <xref:System.Security.Cryptography.X509Certificates.X509ContentType.Cert?displayProperty=nameWithType>. |
2423 | 2438 |
|
2424 | 2439 | ## Examples
|
2425 | 2440 | The following example uses the <xref:System.Security.Cryptography.X509Certificates.X509Certificate.GetRawCertData%2A> method to return a certificate's raw data as an array of bytes and displays it to the console.
|
|
2702 | 2717 | <permission cref="T:System.Security.SecurityCriticalAttribute">requires full trust for the immediate caller. This class cannot be used by partially trusted or transparent code.</permission>
|
2703 | 2718 | <permission cref="F:System.Security.Permissions.SecurityAction.InheritanceDemand">for full trust for inheritors. This member cannot be inherited by partially trusted code.</permission>
|
2704 | 2719 | <permission cref="T:System.Security.Permissions.KeyContainerPermission">for permission to create a key container. Security action: <see cref="F:System.Security.Permissions.SecurityAction.Demand" />. Associated enumeration: <see cref="F:System.Security.Permissions.KeyContainerPermissionFlags.Create" /></permission>
|
| 2720 | + <exception cref="T:System.PlatformNotSupportedException">.NET Core only: In all cases.</exception> |
2705 | 2721 | </Docs>
|
2706 | 2722 | </Member>
|
2707 | 2723 | <Member MemberName="Import">
|
|
2764 | 2780 | ]]></format>
|
2765 | 2781 | </remarks>
|
2766 | 2782 | <exception cref="T:System.ArgumentException">The <paramref name="fileName" /> parameter is <see langword="null" />.</exception>
|
| 2783 | + <exception cref="T:System.PlatformNotSupportedException">.NET Core only: In all cases.</exception> |
2767 | 2784 | <permission cref="T:System.Security.SecurityCriticalAttribute">requires full trust for the immediate caller. This class cannot be used by partially trusted or transparent code.</permission>
|
2768 | 2785 | <permission cref="F:System.Security.Permissions.SecurityAction.InheritanceDemand">for full trust for inheritors. This member cannot be inherited by partially trusted code.</permission>
|
2769 | 2786 | <permission cref="T:System.Security.Permissions.FileIOPermission">for permission to read the file described by the <paramref name="fileName" /> parameter. Security action: <see cref="F:System.Security.Permissions.SecurityAction.Demand" />. Associated enumeration: <see cref="F:System.Security.Permissions.EnvironmentPermissionAccess.Read" /></permission>
|
|
2831 | 2848 | -or-
|
2832 | 2849 |
|
2833 | 2850 | The length of the <paramref name="rawData" /> parameter is 0.</exception>
|
| 2851 | + <exception cref="T:System.PlatformNotSupportedException">.NET Core only: In all cases.</exception> |
2834 | 2852 | <permission cref="T:System.Security.SecurityCriticalAttribute">requires full trust for the immediate caller. This class cannot be used by partially trusted or transparent code.</permission>
|
2835 | 2853 | <permission cref="F:System.Security.Permissions.SecurityAction.InheritanceDemand">for full trust for inheritors. This member cannot be inherited by partially trusted code.</permission>
|
2836 | 2854 | <permission cref="T:System.Security.Permissions.KeyContainerPermission">for permission to create a key container. Security action: <see cref="F:System.Security.Permissions.SecurityAction.Demand" />. Associated enumeration: <see cref="F:System.Security.Permissions.KeyContainerPermissionFlags.Create" /></permission>
|
|
2895 | 2913 | -or-
|
2896 | 2914 |
|
2897 | 2915 | The length of the <paramref name="rawData" /> parameter is 0.</exception>
|
| 2916 | + <exception cref="T:System.PlatformNotSupportedException">.NET Core only: In all cases.</exception> |
2898 | 2917 | <permission cref="T:System.Security.SecurityCriticalAttribute">requires full trust for the immediate caller. This class cannot be used by partially trusted or transparent code.</permission>
|
2899 | 2918 | <permission cref="F:System.Security.Permissions.SecurityAction.InheritanceDemand">for full trust for inheritors. This member cannot be inherited by partially trusted code.</permission>
|
2900 | 2919 | <permission cref="T:System.Security.Permissions.KeyContainerPermission">for permission to create a key container. Security action: <see cref="F:System.Security.Permissions.SecurityAction.Demand" />. Associated enumeration: <see cref="F:System.Security.Permissions.KeyContainerPermissionFlags.Create" /></permission>
|
|
2957 | 2976 | ]]></format>
|
2958 | 2977 | </remarks>
|
2959 | 2978 | <exception cref="T:System.ArgumentException">The <paramref name="fileName" /> parameter is <see langword="null" />.</exception>
|
| 2979 | + <exception cref="T:System.PlatformNotSupportedException">.NET Core only: In all cases.</exception> |
2960 | 2980 | <permission cref="T:System.Security.SecurityCriticalAttribute">requires full trust for the immediate caller. This class cannot be used by partially trusted or transparent code.</permission>
|
2961 | 2981 | <permission cref="F:System.Security.Permissions.SecurityAction.InheritanceDemand">for full trust for inheritors. This member cannot be inherited by partially trusted code.</permission>
|
2962 | 2982 | <permission cref="T:System.Security.Permissions.FileIOPermission">for permission to read the file described by the <paramref name="fileName" /> parameter. Security action: <see cref="F:System.Security.Permissions.SecurityAction.Demand" />. Associated enumeration: <see cref="F:System.Security.Permissions.EnvironmentPermissionAccess.Read" /></permission>
|
|
3020 | 3040 | ]]></format>
|
3021 | 3041 | </remarks>
|
3022 | 3042 | <exception cref="T:System.ArgumentException">The <paramref name="fileName" /> parameter is <see langword="null" />.</exception>
|
| 3043 | + <exception cref="T:System.PlatformNotSupportedException">.NET Core only: In all cases.</exception> |
3023 | 3044 | <permission cref="T:System.Security.SecurityCriticalAttribute">requires full trust for the immediate caller. This class cannot be used by partially trusted or transparent code.</permission>
|
3024 | 3045 | <permission cref="F:System.Security.Permissions.SecurityAction.InheritanceDemand">for full trust for inheritors. This member cannot be inherited by partially trusted code.</permission>
|
3025 | 3046 | <permission cref="T:System.Security.Permissions.FileIOPermission">for permission to read the file described by the <paramref name="fileName" /> parameter. Security action: <see cref="F:System.Security.Permissions.SecurityAction.Demand" />. Associated enumeration: <see cref="F:System.Security.Permissions.EnvironmentPermissionAccess.Read" /></permission>
|
|
3198 | 3219 | <param name="sender">The source of the deserialization event.</param>
|
3199 | 3220 | <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface and is called back by the deserialization event when deserialization is complete.</summary>
|
3200 | 3221 | <remarks>To be added.</remarks>
|
| 3222 | + <exception cref="T:System.PlatformNotSupportedException">.NET Core only: In all cases.</exception> |
3201 | 3223 | </Docs>
|
3202 | 3224 | </Member>
|
3203 | 3225 | <Member MemberName="System.Runtime.Serialization.ISerializable.GetObjectData">
|
|
3244 | 3266 | <param name="context">The destination context of the serialization.</param>
|
3245 | 3267 | <summary>Gets serialization information with all the data needed to recreate an instance of the current <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" /> object.</summary>
|
3246 | 3268 | <remarks>To be added.</remarks>
|
| 3269 | + <exception cref="T:System.PlatformNotSupportedException">.NET Core only: In all cases.</exception> |
3247 | 3270 | <permission cref="T:System.Security.SecurityCriticalAttribute">requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.</permission>
|
3248 | 3271 | </Docs>
|
3249 | 3272 | </Member>
|
|
3394 | 3417 | <Parameter Name="bytesWritten" Type="System.Int32" RefType="out" Index="2" FrameworkAlternate="netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1;netcore-3.1" />
|
3395 | 3418 | </Parameters>
|
3396 | 3419 | <Docs>
|
3397 |
| - <param name="hashAlgorithm">To be added.</param> |
3398 |
| - <param name="destination">To be added.</param> |
3399 |
| - <param name="bytesWritten">To be added.</param> |
3400 |
| - <summary>To be added.</summary> |
3401 |
| - <returns>To be added.</returns> |
| 3420 | + <param name="hashAlgorithm">The algorithm to use for the thumbprint.</param> |
| 3421 | + <param name="destination">The buffer to receive the certificate thumbprint.</param> |
| 3422 | + <param name="bytesWritten">When this method returns, the total number of bytes written into <paramref name="destination"/>. This parameter is treated as uninitialized.</param> |
| 3423 | + <summary>Attempts to produce a "thumbprint" for the certificate by hashing the encoded representation of the certificate with the specified hash algorithm.</summary> |
| 3424 | + <returns> |
| 3425 | + <see langword="true"/> if <paramref name="destination"/> is long enough to receive the hash value; otherwise, <see langword="false"/>.</returns> |
3402 | 3426 | <remarks>To be added.</remarks>
|
| 3427 | + <exception cref="T:System.ArgumentException"> |
| 3428 | + <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or an empty string.</exception> |
| 3429 | + <exception cref="T:System.Security.Cryptography.CryptographicException"> |
| 3430 | + <paramref name="hashAlgorithm" /> is not a known hash algorithm.</exception> |
| 3431 | + <altmember cref="M:System.Security.Cryptography.X509Certificates.X509Certificate.GetCertHash(System.Security.Cryptography.HashAlgorithmName)" /> |
3403 | 3432 | </Docs>
|
3404 | 3433 | </Member>
|
3405 | 3434 | </Members>
|
|
0 commit comments