Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@ximian.com>2003-12-08 04:20:50 +0300
committerSebastien Pouliot <sebastien@ximian.com>2003-12-08 04:20:50 +0300
commita7dc35c1f9ff28759d6da01c1414bd1a3ee06276 (patch)
tree871643aa587833d9baac777f842c3a709b1646ab /mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfoCollection.cs
parent344149b2086792f8596b5a527d6a1a9bc00d6f71 (diff)
2003-12-07 Sebastien Pouliot <spouliot@videotron.ca>
* ContentInfo.cs: Modified default Oid not to include description. Added basic support for static GetContentType. * EnvelopedPkcs7.cs: New. Partial implementation of PKCS#7 envelopes (encrypted data). * KeyAgreeRecipientInfo.cs: New. Stub for key agreement informations. Note that key agreement algorithms (DH) are absent from the framework. * KeyTransRecipientInfo.cs: New. Implementation for key transport informations. * Pkcs7Recipient.cs: New. Implementation of "recipients" - how it links to a X.509 certificate (issuer and serial key or subject key info). * Pkcs7RecipientCollection.cs: New. Collection of Pkcs7Recipient. * Pkcs7RecipientEnumerator.cs: New. Enumerator for Pkcs7Recipient. * Pkcs7AttributeCollection.cs: New. Collection of Pkcs9Attributes. * Pkcs7AttributeEnumerator.cs: New. Enumerator for Pkcs9Attributes. * PublicKeyInfo.cs: New. Handle public key informations. * RecipientInfoCollection.cs: New. Collection of RecipientInfo (and inherited classes). * RecipientInfoEnumerator.cs: New. Enumerator for RecipientInfo (and inherited classes). * SignedPkcs7.cs: New. Partial implementation of PKCS#7 signed structures. * SignerInfo.cs: New. Information (certificate and attributes) about the signer. Actual signature/verification stuff is missing. * SignerInfoCollection.cs: New. Collection of SignerInfo. * SignerInfoEnumarator.cs: New. Enumerator for SignerInfo. * SubjectIdentifier.cs: New. Contains the type of identifier linking to a subject. * SubjectIdentifierOrKey.cs: New. Contains the subject's public key or an information linking to a subject public key. svn path=/trunk/mcs/; revision=20843
Diffstat (limited to 'mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfoCollection.cs')
-rwxr-xr-xmcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfoCollection.cs74
1 files changed, 74 insertions, 0 deletions
diff --git a/mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfoCollection.cs b/mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfoCollection.cs
new file mode 100755
index 00000000000..fdfc80d584d
--- /dev/null
+++ b/mcs/class/System.Security/System.Security.Cryptography.Pkcs/RecipientInfoCollection.cs
@@ -0,0 +1,74 @@
+//
+// RecipientInfoCollection.cs - System.Security.Cryptography.Pkcs.RecipientInfoCollection
+//
+// Author:
+// Sebastien Pouliot (spouliot@motus.com)
+//
+// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
+//
+
+#if NET_1_2
+
+using System;
+using System.Collections;
+
+namespace System.Security.Cryptography.Pkcs {
+
+ public class RecipientInfoCollection : ICollection {
+
+ private ArrayList _list;
+
+ // only accessible from EnvelopedPkcs7.RecipientInfos
+ internal RecipientInfoCollection ()
+ {
+ _list = new ArrayList ();
+ }
+
+ // properties
+
+ public int Count {
+ get { return _list.Count; }
+ }
+
+ public bool IsSynchronized {
+ get { return _list.IsSynchronized; }
+ }
+
+ public RecipientInfo this [int index] {
+ get { return (RecipientInfo) _list [index]; }
+ }
+
+ public object SyncRoot {
+ get { return _list.SyncRoot; }
+ }
+
+ // methods
+
+ internal int Add (RecipientInfo ri)
+ {
+ return _list.Add (ri);
+ }
+
+ public void CopyTo (Array array, int index)
+ {
+ _list.CopyTo (array, index);
+ }
+
+ public void CopyTo (RecipientInfo[] array, int index)
+ {
+ _list.CopyTo (array, index);
+ }
+
+ public RecipientInfoEnumerator GetEnumerator ()
+ {
+ return new RecipientInfoEnumerator (_list);
+ }
+
+ IEnumerator IEnumerable.GetEnumerator ()
+ {
+ return new RecipientInfoEnumerator (_list);
+ }
+ }
+}
+
+#endif \ No newline at end of file