2003-12-07 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.Pkcs / RecipientInfoEnumerator.cs
1 //
2 // RecipientInfoEnumerator.cs - System.Security.Cryptography.Pkcs.RecipientInfoEnumerator
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.Pkcs {
16
17         public class RecipientInfoEnumerator : IEnumerator {
18
19                 private IEnumerator enumerator;
20
21                 // constructors
22
23                 internal RecipientInfoEnumerator (IEnumerable enumerable)
24                 {
25                         enumerator = enumerable.GetEnumerator ();
26                 }
27
28                 // properties
29
30                 public RecipientInfo Current {
31                         get { return (RecipientInfo) enumerator.Current; }
32                 }
33
34                 object IEnumerator.Current {
35                         get { return enumerator.Current; }
36                 }
37
38                 // methods
39
40                 public bool MoveNext ()
41                 {
42                         return enumerator.MoveNext ();
43                 }
44
45                 public void Reset ()
46                 {
47                         enumerator.Reset ();
48                 }
49         }
50 }
51
52 #endif