41 references to X509ContentType
mscorlib (20)
system\security\cryptography\x509certificates\x509certificate.cs (11)
578
public virtual byte[] Export(
X509ContentType
contentType) {
584
public virtual byte[] Export(
X509ContentType
contentType, string password) {
590
public virtual byte[] Export(
X509ContentType
contentType, SecureString password) {
737
private byte[] ExportHelper (
X509ContentType
contentType, object password) {
739
case
X509ContentType
.Cert:
747
case
X509ContentType
.SerializedCert:
750
case
X509ContentType
.Pkcs12:
789
X509ContentType
contentType = X509Utils.MapContentType(X509Utils._QueryCertBlobType(rawData));
791
if (contentType ==
X509ContentType
.Pkcs12 &&
829
X509ContentType
contentType = X509Utils.MapContentType(X509Utils._QueryCertFileType(fileName));
831
if (contentType ==
X509ContentType
.Pkcs12 &&
system\security\cryptography\x509certificates\x509utils.cs (9)
230
internal static
X509ContentType
MapContentType(uint contentType) {
233
return
X509ContentType
.Cert;
236
return
X509ContentType
.SerializedStore;
238
return
X509ContentType
.SerializedCert;
241
return
X509ContentType
.Pkcs7;
243
return
X509ContentType
.Authenticode;
246
return
X509ContentType
.Pkcs12;
250
return
X509ContentType
.Unknown;
364
internal static extern byte[] _ExportCertificatesToBlob(SafeCertStoreHandle safeCertStoreHandle,
X509ContentType
contentType, IntPtr password);
System (19)
security\system\security\cryptography\x509\x509certificate2.cs (2)
1153
public static
X509ContentType
GetCertContentType (byte[] rawData) {
1165
public static
X509ContentType
GetCertContentType (string fileName) {
security\system\security\cryptography\x509\x509certificate2collection.cs (9)
269
public byte[] Export(
X509ContentType
contentType) {
276
public byte[] Export(
X509ContentType
contentType, string password) {
297
private unsafe static byte[] ExportCertificatesToBlob(SafeCertStoreHandle safeCertStoreHandle,
X509ContentType
contentType, string password) {
305
case
X509ContentType
.Cert:
314
case
X509ContentType
.SerializedCert:
335
case
X509ContentType
.Pkcs12:
354
case
X509ContentType
.SerializedStore:
356
case
X509ContentType
.Pkcs7:
357
if (contentType ==
X509ContentType
.SerializedStore)
security\system\security\cryptography\x509\x509utils.cs (8)
33
internal static
X509ContentType
MapContentType (uint contentType) {
36
return
X509ContentType
.Cert;
38
return
X509ContentType
.SerializedStore;
40
return
X509ContentType
.SerializedCert;
43
return
X509ContentType
.Pkcs7;
45
return
X509ContentType
.Authenticode;
47
return
X509ContentType
.Pkcs12;
49
return
X509ContentType
.Unknown;
System.ServiceModel (2)
System\ServiceModel\Configuration\IdentityElement.cs (2)
115
this.Certificate.EncodedValue = Convert.ToBase64String(certs.Export(certs.Count == 1 ?
X509ContentType
.SerializedCert :
X509ContentType
.SerializedStore));