Fri Nov 24 18:38:31 CET 2006 Paolo Molaro <lupus@ximian.com>
[mono.git] / mcs / class / Microsoft.Web.Services / Microsoft.Web.Services.Security / TransformChain.cs
1 //
2 // TransformChain.cs - TransformChain implementation for XML Signature
3 //
4 // Author:
5 //      Sebastien Pouliot (spouliot@motus.com)
6 //
7 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
8 //
9
10 using System.Collections;
11
12 #if (WSE1 || WSE2)
13 using System.Security.Cryptography.Xml;
14
15 namespace Microsoft.Web.Services.Security {
16 #else
17 namespace System.Security.Cryptography.Xml {
18 #endif
19         public class TransformChain {
20
21                 private ArrayList chain;
22
23                 public TransformChain() 
24                 {
25                         chain = new ArrayList ();
26                 }
27
28                 public int Count {
29                         get { return chain.Count; }
30                 }
31
32                 public Transform this [int index] {
33                         get { return (Transform) chain [index]; }
34                 }
35
36                 public void Add (Transform transform) 
37                 {
38                         chain.Add (transform);
39                 }
40
41                 public IEnumerator GetEnumerator () 
42                 {
43                         return chain.GetEnumerator ();
44                 }
45         }
46 }