This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,140 @@
using System;
using System.Collections;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Represents a collection of <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElement" /> objects. This class cannot be inherited.</summary>
// Token: 0x0200028F RID: 655
public sealed class X509ChainElementCollection : ICollection, IEnumerable
{
// Token: 0x06001831 RID: 6193 RVA: 0x00052644 File Offset: 0x00050844
internal X509ChainElementCollection()
{
this._list = new ArrayList();
}
/// <summary>Copies an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" /> object into an array, starting at the specified index.</summary>
/// <param name="array">An array to copy the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" /> object to.</param>
/// <param name="index">The index of <paramref name="array" /> at which to start copying.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">The specified <paramref name="index" /> is less than zero, or greater than or equal to the length of the array. </exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> is null. </exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="index" /> plus the current count is greater than the length of the array. </exception>
// Token: 0x06001832 RID: 6194 RVA: 0x00052658 File Offset: 0x00050858
void ICollection.CopyTo(Array array, int index)
{
this._list.CopyTo(array, index);
}
/// <summary>Gets an <see cref="T:System.Collections.IEnumerator" /> object that can be used to navigate a collection of chain elements.</summary>
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> object.</returns>
// Token: 0x06001833 RID: 6195 RVA: 0x00052668 File Offset: 0x00050868
IEnumerator IEnumerable.GetEnumerator()
{
return new X509ChainElementEnumerator(this._list);
}
/// <summary>Gets the number of elements in the collection.</summary>
/// <returns>An integer representing the number of elements in the collection.</returns>
// Token: 0x17000798 RID: 1944
// (get) Token: 0x06001834 RID: 6196 RVA: 0x00052678 File Offset: 0x00050878
public int Count
{
get
{
return this._list.Count;
}
}
/// <summary>Gets a value indicating whether the collection of chain elements is synchronized.</summary>
/// <returns>Always returns false.</returns>
// Token: 0x17000799 RID: 1945
// (get) Token: 0x06001835 RID: 6197 RVA: 0x00052688 File Offset: 0x00050888
public bool IsSynchronized
{
get
{
return this._list.IsSynchronized;
}
}
/// <summary>Gets the <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElement" /> object at the specified index.</summary>
/// <returns>An <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElement" /> object.</returns>
/// <param name="index">An integer value. </param>
/// <exception cref="T:System.InvalidOperationException">
/// <paramref name="index" /> is less than zero. </exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> is greater than or equal to the length of the collection. </exception>
// Token: 0x1700079A RID: 1946
public X509ChainElement this[int index]
{
get
{
return (X509ChainElement)this._list[index];
}
}
/// <summary>Gets an object that can be used to synchronize access to an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" /> object.</summary>
/// <returns>A pointer reference to the current object.</returns>
// Token: 0x1700079B RID: 1947
// (get) Token: 0x06001837 RID: 6199 RVA: 0x000526AC File Offset: 0x000508AC
public object SyncRoot
{
get
{
return this._list.SyncRoot;
}
}
/// <summary>Copies an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection" /> object into an array, starting at the specified index.</summary>
/// <param name="array">An array of <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElement" /> objects. </param>
/// <param name="index">An integer representing the index value. </param>
/// <exception cref="T:System.ArgumentOutOfRangeException">The specified <paramref name="index" /> is less than zero, or greater than or equal to the length of the array. </exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> is null. </exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="index" /> plus the current count is greater than the length of the array. </exception>
// Token: 0x06001838 RID: 6200 RVA: 0x000526BC File Offset: 0x000508BC
public void CopyTo(X509ChainElement[] array, int index)
{
this._list.CopyTo(array, index);
}
/// <summary>Gets an <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementEnumerator" /> object that can be used to navigate through a collection of chain elements.</summary>
/// <returns>An <see cref="T:System.Security.Cryptography.X509Certificates.X509ChainElementEnumerator" /> object.</returns>
// Token: 0x06001839 RID: 6201 RVA: 0x000526CC File Offset: 0x000508CC
public X509ChainElementEnumerator GetEnumerator()
{
return new X509ChainElementEnumerator(this._list);
}
// Token: 0x0600183A RID: 6202 RVA: 0x000526DC File Offset: 0x000508DC
internal void Add(X509Certificate2 certificate)
{
this._list.Add(new X509ChainElement(certificate));
}
// Token: 0x0600183B RID: 6203 RVA: 0x000526F0 File Offset: 0x000508F0
internal void Clear()
{
this._list.Clear();
}
// Token: 0x0600183C RID: 6204 RVA: 0x00052700 File Offset: 0x00050900
internal bool Contains(X509Certificate2 certificate)
{
for (int i = 0; i < this._list.Count; i++)
{
if (certificate.Equals((this._list[i] as X509ChainElement).Certificate))
{
return true;
}
}
return false;
}
// Token: 0x0400131A RID: 4890
private ArrayList _list;
}
}