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