2 // ExtensionsHandler.cs: Extensions Configuration Handler (not GUI specific)
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
11 using System
.Collections
;
12 using System
.Configuration
;
15 namespace Mono
.Tools
.CertView
{
17 public class X509ExtensionsHandler
: DictionarySectionHandler
{
19 public X509ExtensionsHandler () : base () {}
21 public override object Create (object parent
, object context
, XmlNode section
)
23 XmlNodeList xnl
= section
.SelectNodes ("/X509.Extensions/Extension");
27 Hashtable ht
= new Hashtable ();
28 foreach (XmlNode xn
in xnl
) {
29 XmlAttribute xaOid
= xn
.Attributes
["OID"];
30 XmlAttribute xaClass
= xn
.Attributes
["Class"];
31 if ((xaOid
!= null) && (xaClass
!= null))
32 ht
.Add (xaOid
.InnerText
, xaClass
.InnerText
);