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
Copy file name to clipboardExpand all lines: xml/System.Security.Cryptography.Pkcs/Pkcs12CertBag.xml
+38-12Lines changed: 38 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
</Base>
16
16
<Interfaces />
17
17
<Docs>
18
-
<summary>To be added.</summary>
18
+
<summary>Represents the PKCS#12 CertBag. This class cannot be inherited.</summary>
19
19
<remarks>To be added.</remarks>
20
20
</Docs>
21
21
<Members>
@@ -43,12 +43,16 @@
43
43
<remarks>
44
44
<formattype="text/markdown"><![CDATA[
45
45
46
+
## Remarks
47
+
46
48
No validation is done to ensure that the `encodedCertificate` value is correct for the indicated `certificateType`.
47
49
48
50
Note that for X.509 public-key certificates, the correct encoding for a CertBag value is to wrap the DER-encoded certificate in an OCTET STRING.
49
51
50
52
]]></format>
51
53
</remarks>
54
+
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="certificateType"/> parameter is <seelangword="null"/>.</exception>
55
+
<exceptioncref="T:System.Security.Cryptography.CryptographicException">The <paramrefname="encodedCertificate"/> parameter does not represent a single ASN.1 BER-encoded value.</exception>
52
56
</Docs>
53
57
</Member>
54
58
<MemberMemberName="EncodedCertificate">
@@ -68,9 +72,18 @@ Note that for X.509 public-key certificates, the correct encoding for a CertBag
@@ -114,9 +130,18 @@ Note that for X.509 public-key certificates, the correct encoding for a CertBag
114
130
</ReturnValue>
115
131
<Parameters />
116
132
<Docs>
117
-
<summary>To be added.</summary>
118
-
<returns>To be added.</returns>
119
-
<remarks>To be added.</remarks>
133
+
<summary>Gets the Object Identifier (OID) which identifies the content type of the encoded certificte value.</summary>
134
+
<returns>The Object Identifier (OID) which identifies the content type of the encoded certificate value.</returns>
135
+
<remarks>
136
+
<formattype="text/markdown"><![CDATA[
137
+
138
+
## Remarks
139
+
140
+
IETF RFC 7292 defines two content types for a CertBag: X.509 Public Key Certificate (1.2.840.113549.1.9.22.1) and SDSI Certificate (1.2.840.113549.1.9.22.2), as well as indicating other types could be added in the future. This type has special support for X.509 Public Key Certificates, which are represented in .NET by the <xref:System.Security.Cryptography.X509Certificates.X509Certificate2> class, via the <xref:System.Security.Cryptography.Pkcs.Pkcs12CertBag.IsX509Certificate> and <xref:System.Security.Cryptography.Pkcs.Pkcs12CertBag.GetCertificate> members. This type does not have special support for SDSI certificates, but callers expecting an SDSI certificate (or a certificate type defined after IETF RFC 7292) can process the value directly via the <xref:System.Security.Cryptography.Pkcs.Pkcs12CertBag.EncodedCertificate> property.
@@ -136,10 +161,11 @@ Note that for X.509 public-key certificates, the correct encoding for a CertBag
136
161
<ReturnType>System.Boolean</ReturnType>
137
162
</ReturnValue>
138
163
<Docs>
139
-
<summary>To be added.</summary>
140
-
<value>To be added.</value>
164
+
<summary>Gets a value indicating whether the content type of the encoded certificate value is the X.509 public key certificate content type.</summary>
165
+
<value><seelangword="true"/> if the content type is the X.509 public key certificate content type (1.2.840.113549.1.9.22.1); otherwise, <seelangword="false"/>.</value>
0 commit comments