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
<paramname="encodedMessage">An array of byte values that represents the encoded <seecref="T:System.Security.Cryptography.Pkcs.ContentInfo" /> message from which to retrieve the outer content type.</param>
287
-
<summary>The <seecref="M:System.Security.Cryptography.Pkcs.ContentInfo.GetContentType(System.Byte[])" /> static method retrieves the outer content type of the encoded <seecref="T:System.Security.Cryptography.Pkcs.ContentInfo" /> message represented by an array of byte values.</summary>
288
-
<returns>If the method succeeds, the method returns an <seecref="T:System.Security.Cryptography.Oid" /> object that contains the outer content type of the specified encoded <seecref="T:System.Security.Cryptography.Pkcs.ContentInfo" /> message.
289
-
290
-
If the method fails, it throws an exception.</returns>
286
+
<paramname="encodedMessage">An array of byte values that represents the encoded CMS ContentInfo message from which to retrieve the outer content type.</param>
287
+
<summary>Retrieves the outer content type of an encoded CMS ContentInfo message.</summary>
288
+
<returns>The outer content type of the specified encoded CMS ContentInfo message.</returns>
291
289
<remarks>To be added.</remarks>
292
-
<exceptioncref="T:System.ArgumentNullException">A null reference was passed to a method that does not accept it as a valid argument.</exception>
293
-
<exceptioncref="T:System.Security.Cryptography.CryptographicException">An error occurred during a cryptographic operation.</exception>
290
+
<exceptioncref="T:System.ArgumentNullException"><paramrefname="encodedMessage" /> is <seelangword="null" />.</exception>
291
+
<exceptioncref="T:System.Security.Cryptography.CryptographicException"><paramrefname="encodedMessage" /> cannot be decoded as a valid CMS ContentInfo value.</exception>
<paramname="encodedMessage">A read-only span of byte values that represents the encoded CMS ContentInfo message from which to retrieve the outer content type.</param>
314
+
<summary>Retrieves the outer content type of an encoded CMS ContentInfo message.</summary>
315
+
<returns>The outer content type of the specified encoded CMS ContentInfo message.</returns>
318
316
<remarks>To be added.</remarks>
317
+
<exceptioncref="T:System.Security.Cryptography.CryptographicException"><paramrefname="encodedMessage" /> cannot be decoded as a valid CMS ContentInfo value.</exception>
<paramname="encodedMessage">Array of byte values that represents the encoded CMS/PKCS#7 message to be decoded.</param>
848
-
<summary>The <seecref="M:System.Security.Cryptography.Pkcs.SignedCms.Decode(System.Byte[])" /> method decodes an encoded <seecref="T:System.Security.Cryptography.Pkcs.SignedCms" /> message. Upon successful decoding, the decoded information can be retrieved from the properties of the <seecref="T:System.Security.Cryptography.Pkcs.SignedCms" /> object.</summary>
847
+
<paramname="encodedMessage">An array of byte values that represents the encoded CMS/PKCS#7 message to be decoded.</param>
848
+
<summary>Decodes an encoded <seecref="T:System.Security.Cryptography.Pkcs.SignedCms" /> message.</summary>
849
849
<remarks>
850
850
<formattype="text/markdown"><![CDATA[
851
851
@@ -867,8 +867,8 @@ The following permissions are required to access the signature key:
867
867
868
868
]]></format>
869
869
</remarks>
870
-
<exceptioncref="T:System.ArgumentNullException">A null reference was passed to a method that does not accept it as a valid argument.</exception>
871
-
<exceptioncref="T:System.Security.Cryptography.CryptographicException">A cryptographic operation could not be completed.</exception>
870
+
<exceptioncref="T:System.ArgumentNullException"><paramrefname="encodedMessage" /> is <seelangword="null" />.</exception>
871
+
<exceptioncref="T:System.Security.Cryptography.CryptographicException"><paramrefname="encodedMessage" /> could not be decoded successfully.</exception>
<paramname="encodedMessage">A read-only span of byte values that represents the encoded CMS/PKCS#7 message to be decoded.</param>
896
+
<summary>Decodes an encoded <seecref="T:System.Security.Cryptography.Pkcs.SignedCms" /> message.</summary>
896
897
<remarks>To be added.</remarks>
898
+
<exceptioncref="T:System.Security.Cryptography.CryptographicException"><paramrefname="encodedMessage" /> could not be decoded successfully.</exception>
<paramname="fileName">The name of a certificate file.</param>
823
+
<paramname="password">The password required to access the X.509 certificate data.</param>
824
+
<paramname="keyStorageFlags">A bitwise combination of the enumeration values that control where and how to import the certificate.</param>
825
+
<summary>Initializes a new instance of the <seecref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> class using a certificate file name, a password, and a key storage flag.</summary>
826
+
<remarks>
827
+
<formattype="text/markdown"><![CDATA[
828
+
829
+
## Remarks
830
+
> [!IMPORTANT]
831
+
> Never hard code a password within your source code. Hard-coded passwords can be retrieved from an assembly using the [Ildasm.exe (IL Disassembler)](/dotnet/framework/tools/ildasm-exe-il-disassembler), a hex editor, or by simply opening up the assembly in a text editor such as Notepad.exe.
832
+
833
+
If you create an <xref:System.Security.Cryptography.X509Certificates.X509Certificate2> certificate by specifying a PKCS7 signed file store for `fileName`, the <xref:System.Security.Cryptography.X509Certificates.X509Certificate2> is created for the certificate that signed the store rather than for any of the certificates within the store.
834
+
835
+
]]></format>
836
+
</remarks>
837
+
<exceptioncref="T:System.Security.Cryptography.CryptographicException">An error with the certificate occurs. For example:
838
+
839
+
- The certificate file does not exist.
840
+
841
+
- The certificate is invalid.
842
+
843
+
- The certificate's password is incorrect.</exception>
<paramname="subjectKeyIdentifier">To be added.</param>
172
-
<paramname="critical">To be added.</param>
173
-
<summary>To be added.</summary>
171
+
<paramname="subjectKeyIdentifier">A read-only span of bytes that represents data to use to create the extension.</param>
172
+
<paramname="critical">
173
+
<seelangword="true" /> if the extension is critical; otherwise, <seelangword="false" />.</param>
174
+
<summary>Initializes a new instance of the <seecref="T:System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension" /> class using a read-only span of bytes and a value that identifies whether the extension is critical.</summary>
0 commit comments