X509Chain.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // X509Chain.cs - System.Security.Cryptography.X509Certificates.X509Chain
  3. //
  4. // Author:
  5. // Sebastien Pouliot ([email protected])
  6. //
  7. // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
  8. //
  9. #if NET_1_2
  10. using System;
  11. namespace System.Security.Cryptography.X509Certificates {
  12. // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
  13. public class X509Chain {
  14. private bool _machineContext;
  15. private X509ChainElementCollection _elements;
  16. private X509ChainPolicy _policy;
  17. private X509ChainStatus[] _status;
  18. // constructors
  19. public X509Chain () : this (false) {}
  20. public X509Chain (bool useMachineContext)
  21. {
  22. _machineContext = useMachineContext;
  23. _elements = new X509ChainElementCollection ();
  24. _policy = new X509ChainPolicy ();
  25. }
  26. // properties
  27. public X509ChainElementCollection ChainElements {
  28. get { return _elements; }
  29. }
  30. public X509ChainPolicy ChainPolicy {
  31. get { return _policy; }
  32. }
  33. public X509ChainStatus[] ChainStatus {
  34. get {
  35. if (_status == null)
  36. _status = new X509ChainStatus [0];
  37. return _status;
  38. }
  39. }
  40. // methods
  41. [MonoTODO]
  42. public bool Build (X509CertificateEx certificate)
  43. {
  44. return false;
  45. }
  46. // static methods
  47. public static X509Chain Create ()
  48. {
  49. return new X509Chain ();
  50. }
  51. }
  52. }
  53. #endif