A
download SecurityElementCollection.cs
Language: C#
Copyright: (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
LOC: 47
Project Info
mcs
Server: Mono
Type: svn
...soft.Web.Services.Security\
   AsymmetricDecryptionKey.cs
   AsymmetricEncryptionKey.cs
   AuthenticationKey.cs
   BinarySecurityToken.cs
   DecryptionKey.cs
   DecryptionKeyProvider.cs
   EncryptedData.cs
   EncryptedKey.cs
   EncryptionKey.cs
   IDecryptionKeyProvider.cs
   IMutableSecurityToken.cs
   IPasswordProvider.cs
   IReplayCache.cs
   ISecurityElement.cs
   KeyIdentifier.cs
   Nonce.cs
   OASIS.cs
   PasswordOption.cs
   Reference.cs
   ReferenceList.cs
   ReplayCacheManager.cs
   SaML.cs
   Security.cs
   SecurityCollection.cs
   ...ityElementCollection.cs
   SecurityFault.cs
   SecurityFormatException.cs
   SecurityInputFilter.cs
   SecurityOutputFilter.cs
   SecurityToken.cs
   SecurityTokenCache.cs
   SecurityTokenCollection.cs
   SecurityTokenReference.cs
   ...tyTokenReferenceType.cs
   Signature.cs
   SignatureKey.cs
   SignatureOptions.cs
   SignedInfo.cs
   SignedXml.cs
   SignedXmlSignature.cs
   SMSecurity.cs
   SMSecurityBase.cs
   SymmetricDecryptionKey.cs
   SymmetricEncryptionKey.cs
   ...edSecurityTokenCache.cs
   TransformChain.cs
   UsernameToken.cs
   WSEReplayCache.cs
   WSSecurity.cs
   X509SecurityToken.cs
   XmlDsigExcC14NTransform.cs
   ...ithCommentsTransform.cs
   XmlEncryption.cs
   XmlSignature.cs
   Xmltok.cs
   XrML.cs

//
// SecurityElementCollection.cs: Handles WS-Security SecurityElementCollection
//
// Author:
//	Sebastien Pouliot (spouliot@motus.com)
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// This source code may incorporate intellectual property owned by Microsoft 
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need 
// to contact Microsoft directly. 
//

using System;
using System.Collections;

namespace Microsoft.Web.Services.Security {

	public class SecurityElementCollection : ICollection, IEnumerable {

		private ArrayList list;

		public SecurityElementCollection () 
		{
			list = new ArrayList ();
		}

		public int Count {
			get { return list.Count; }
		}

		public bool IsSynchronized {
			get { return list.IsSynchronized; }
		}

		public ISecurityElement this [int index] {
			get { return (ISecurityElement) list [index]; }
		}

		public object SyncRoot {
			get { return list.SyncRoot; }
		}

		public void Add (ISecurityElement element) 
		{
			list.Add (element);
		}

		public void Clear () 
		{
			list.Clear ();
		}

		public void CopyTo (Array array, int index) 
		{
			if (array == null)
				throw new ArgumentNullException ("array");
			list.CopyTo (array, index);
		}

		public IEnumerator GetEnumerator () 
		{
			return list.GetEnumerator ();
		}

		public void Remove (ISecurityElement element) 
		{
			if (element == null)
				throw new ArgumentNullException ("element");
			list.Remove (element);
		}
	}
}

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us