//
-// CryptographicAttribute.cs - System.Security.Cryptography.CryptographicAttribute
+// System.Security.Cryptography.CryptographicAttributeObject class
//
// Author:
// Sebastien Pouliot <sebastien@ximian.com>
namespace System.Security.Cryptography {
- public sealed class CryptographicAttribute {
+ public sealed class CryptographicAttributeObject {
private Oid _oid;
private AsnEncodedDataCollection _list;
// constructors
- public CryptographicAttribute (Oid oid)
+ public CryptographicAttributeObject (Oid oid)
{
if (oid == null)
throw new ArgumentNullException ("oid");
_list = new AsnEncodedDataCollection ();
}
- public CryptographicAttribute (Oid oid, AsnEncodedDataCollection values)
+ public CryptographicAttributeObject (Oid oid, AsnEncodedDataCollection values)
{
if (oid == null)
throw new ArgumentNullException ("oid");
//
-// System.Security.Cryptography.CryptographicAttributeCollection
+// System.Security.Cryptography.CryptographicAttributeObjectCollection class
//
// Author:
// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
#if NET_2_0
-using System;
using System.Collections;
namespace System.Security.Cryptography {
- public sealed class CryptographicAttributeCollection : ICollection, IEnumerable {
+ public sealed class CryptographicAttributeObjectCollection : ICollection, IEnumerable {
private ArrayList _list;
- public CryptographicAttributeCollection ()
+ public CryptographicAttributeObjectCollection ()
{
_list = new ArrayList ();
}
- public CryptographicAttributeCollection (CryptographicAttribute attribute)
+ public CryptographicAttributeObjectCollection (CryptographicAttributeObject attribute)
: this ()
{
_list.Add (attribute);
get { return _list.IsSynchronized; }
}
- public CryptographicAttribute this [int index] {
- get { return (CryptographicAttribute) _list [index]; }
+ public CryptographicAttributeObject this [int index] {
+ get { return (CryptographicAttributeObject) _list [index]; }
}
public object SyncRoot {
return _list.Add (asnEncodedData);
}
- public int Add (CryptographicAttribute attribute)
+ public int Add (CryptographicAttributeObject attribute)
{
if (attribute == null)
throw new ArgumentNullException ("attribute");
return _list.Add (attribute);
}
- public void CopyTo (CryptographicAttribute[] array, int index)
+ public void CopyTo (CryptographicAttributeObject[] array, int index)
{
_list.CopyTo (array, index);
}
_list.CopyTo (array, index);
}
- public CryptographicAttributeEnumerator GetEnumerator ()
+ public CryptographicAttributeObjectEnumerator GetEnumerator ()
{
- return new CryptographicAttributeEnumerator (_list);
+ return new CryptographicAttributeObjectEnumerator (_list);
}
IEnumerator IEnumerable.GetEnumerator ()
{
- return new CryptographicAttributeEnumerator (_list);
+ return new CryptographicAttributeObjectEnumerator (_list);
}
- public void Remove (CryptographicAttribute attribute)
+ public void Remove (CryptographicAttributeObject attribute)
{
_list.Remove (attribute);
}
//
-// System.Security.Cryptography.CryptographicAttributeEnumerator
+// System.Security.Cryptography.CryptographicAttributeObjectEnumerator class
//
// Author:
// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
#if NET_2_0
-using System;
using System.Collections;
namespace System.Security.Cryptography {
- public sealed class CryptographicAttributeEnumerator : IEnumerator {
+ public sealed class CryptographicAttributeObjectEnumerator : IEnumerator {
private IEnumerator enumerator;
// constructors
- internal CryptographicAttributeEnumerator (IEnumerable enumerable)
+ internal CryptographicAttributeObjectEnumerator (IEnumerable enumerable)
{
enumerator = enumerable.GetEnumerator ();
}
// properties
- public CryptographicAttribute Current {
- get { return (CryptographicAttribute) enumerator.Current; }
+ public CryptographicAttributeObject Current {
+ get { return (CryptographicAttributeObject) enumerator.Current; }
}
object IEnumerator.Current {