2003-12-07 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.X509Certificates / X509ExtensionCollection.cs
1 //
2 // X509ExtensionCollection.cs - System.Security.Cryptography.X509ExtensionCollection
3 //
4 // Author:
5 //      Sebastien Pouliot (spouliot@motus.com)
6 //
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
8 //
9
10 #if NET_1_2
11
12 using System;
13 using System.Collections;
14
15 namespace System.Security.Cryptography.X509Certificates {
16
17         // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
18
19         public sealed class X509ExtensionCollection : ICollection, IEnumerable {
20
21                 // properties
22
23                 public int Count {
24                         get { return 0; }
25                 }
26
27                 public bool IsSynchronized {
28                         get { return false; }
29                 }
30
31                 public object SyncRoot {
32                         get { return null; }
33                 }
34
35                 public X509Extension this [int index] {
36                         get { return null; }
37                 }
38
39                 public X509Extension this [string oid] {
40                         get { return null; }
41                 }
42
43                 // methods
44
45                 public void CopyTo (X509Extension[] array, int index) 
46                 {
47                         if (array == null)
48                                 throw new ArgumentNullException ("array");
49                         if (index < 0)
50                                 throw new ArgumentException ("negative index");
51                         if (index > array.Length)
52                                 throw new ArgumentOutOfRangeException ("index > array.Length");
53                 }
54
55                 void ICollection.CopyTo (Array array, int index)
56                 {
57                 }
58
59                 public X509ExtensionEnumerator GetEnumerator () 
60                 {
61                         return new X509ExtensionEnumerator (this);
62                 }
63
64                 IEnumerator IEnumerable.GetEnumerator () 
65                 {
66                         return new X509ExtensionEnumerator (this);
67                 }
68         }
69 }
70
71 #endif