You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#pragma warning disable S3459// Unassigned members should be removed
18
-
// these fields are required and set in native code
18
+
// field required to be accessible by native code
19
19
privatereadonlybyte[]_privateKey;
20
20
#pragma warning restore S3459// Unassigned members should be removed
21
21
@@ -25,6 +25,7 @@ public class X509Certificate2 : X509Certificate
25
25
publicX509Certificate2()
26
26
:base()
27
27
{
28
+
28
29
}
29
30
30
31
/// <summary>
@@ -75,14 +76,19 @@ public X509Certificate2(string certificate, string password)
75
76
/// <summary>
76
77
/// Initializes a new instance of the <see cref="X509Certificate2"/> class using a string with the content of an X.509 public certificate, the private key and a password used to access the certificate.
77
78
/// </summary>
78
-
/// <param name="certificate">A string containing a X.509 certificate.</param>
79
+
/// <param name="rawData">A string containing a X.509 certificate.</param>
79
80
/// <param name="key">A string containing a PEM private key.</param>
80
-
/// <param name="password">The password required to access the X.509 certificate data.</param>
81
+
/// <param name="password">The password required to access the X.509 certificate data. Set to <see langword="null"/> if the <paramref name="rawData"/> or <paramref name="key"/> are not encrypted and do not require a password.</param>
81
82
/// <remarks>
82
83
/// This methods is exclusive of nanoFramework. There is no equivalent in .NET framework.
/// <param name="rawData">A byte array containing data from an X.509 certificate.</param>
106
112
/// <param name="key">A string containing a PEM private key.</param>
107
-
/// <param name="password">The password required to access the X.509 certificate data.</param>
113
+
/// <param name="password">The password required to access the X.509 certificate data. Set to <see langword="null"/> if the <paramref name="rawData"/> or <paramref name="key"/> are not encrypted and do not require a password.</param>
108
114
/// <remarks>
109
115
/// This methods is exclusive of nanoFramework. There is no equivalent in .NET framework.
/// <param name="rawData">A byte array containing data from an X.509 certificate.</param>
133
144
/// <param name="key">A byte array containing a PEM private key.</param>
134
-
/// <param name="password">The password required to access the X.509 certificate data.</param>
145
+
/// <param name="password">The password required to access the X.509 certificate data. <see langword="null"/> if the <paramref name="rawData"/> or <paramref name="key"/> are not encrypted.</param>
135
146
/// <remarks>
136
147
/// This methods is exclusive of nanoFramework. There is no equivalent in .NET framework.
0 commit comments