You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

148 lines
3.3 KiB

namespace com.hitrust.Security.Certificates
{
using System;
using System.Collections;
using System.Reflection;
public class DistinguishedNameList : IEnumerable, ICloneable
{
private ArrayList m_List;
public DistinguishedNameList()
{
this.m_List = new ArrayList();
}
internal DistinguishedNameList(ArrayList state)
{
if (state == null)
{
throw new ArgumentNullException();
}
this.m_List = (ArrayList) state.Clone();
}
public int Add(DistinguishedName value)
{
if (value == null)
{
throw new ArgumentNullException();
}
return this.m_List.Add(value);
}
public void Clear()
{
this.m_List.Clear();
}
public object Clone()
{
return new DistinguishedNameList(this.m_List);
}
public bool Contains(DistinguishedName value)
{
if (value == null)
{
throw new ArgumentNullException();
}
return this.m_List.Contains(value);
}
public void CopyTo(Array array, int index)
{
this.m_List.CopyTo(array, index);
}
public IEnumerator GetEnumerator()
{
return this.m_List.GetEnumerator();
}
public int IndexOf(DistinguishedName value)
{
if (value == null)
{
throw new ArgumentNullException();
}
return this.m_List.IndexOf(value);
}
public void Insert(int index, DistinguishedName value)
{
if (value == null)
{
throw new ArgumentNullException();
}
this.m_List.Insert(index, value);
}
public void Remove(DistinguishedName value)
{
this.m_List.Remove(value);
}
public void RemoveAt(int index)
{
this.m_List.RemoveAt(index);
}
public int Count
{
get
{
return this.m_List.Count;
}
}
public bool IsFixedSize
{
get
{
return this.m_List.IsFixedSize;
}
}
public bool IsReadOnly
{
get
{
return this.m_List.IsReadOnly;
}
}
public bool IsSynchronized
{
get
{
return this.m_List.IsSynchronized;
}
}
public DistinguishedName this[int index]
{
get
{
return (DistinguishedName) this.m_List[index];
}
set
{
if (value == null)
{
throw new ArgumentNullException();
}
this.m_List[index] = value;
}
}
public object SyncRoot
{
get
{
return this.m_List.SyncRoot;
}
}
}
}