The Labs \ Source Viewer \ SSCLI \ System.Security.Cryptography.X509Certificates \ X509KeyStorageFlags

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. //
  16. // X509Certificate.cs
  17. //
  18. namespace System.Security.Cryptography.X509Certificates
  19. {
  20.     using Microsoft.Win32;
  21.     using System;
  22.     using System.IO;
  23.     using System.Runtime.CompilerServices;
  24.     using System.Runtime.InteropServices;
  25.     using System.Runtime.Serialization;
  26.     using System.Security;
  27.     using System.Security.Permissions;
  28.     using System.Security.Util;
  29.     using System.Text;
  30.     using System.Runtime.Versioning;
  31.    
  32.     [System.Runtime.InteropServices.ComVisible(true)]
  33.     public enum X509ContentType
  34.     {
  35.         Unknown = 0,
  36.         Cert = 1,
  37.         SerializedCert = 2,
  38.         Pfx = 3,
  39.         Pkcs12 = Pfx,
  40.         SerializedStore = 4,
  41.         Pkcs7 = 5,
  42.         Authenticode = 6
  43.     }
  44.    
  45.     // DefaultKeySet, UserKeySet and MachineKeySet are mutually exclusive
  46.     [Flags(), Serializable()]
  47.     [System.Runtime.InteropServices.ComVisible(true)]
  48.     public enum X509KeyStorageFlags
  49.     {
  50.         DefaultKeySet = 0,
  51.         UserKeySet = 1,
  52.         MachineKeySet = 2,
  53.         Exportable = 4,
  54.         UserProtected = 8,
  55.         PersistKeySet = 16
  56.     }
  57.    
  58. }

Developer Fusion