diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-28 20:49:58 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-28 20:49:58 +0700 |
commit | dc5029c8650432ae04df78d2ead06a8349176b74 (patch) | |
tree | 306f232f9cf53762ccb427225dee958313b884fd /crypto/src/tls/OcspStatusRequest.cs | |
parent | Generics migration in Ocsp, OpenPgp (diff) | |
download | BouncyCastle.NET-ed25519-dc5029c8650432ae04df78d2ead06a8349176b74.tar.xz |
Generics migration in Tls
Diffstat (limited to 'crypto/src/tls/OcspStatusRequest.cs')
-rw-r--r-- | crypto/src/tls/OcspStatusRequest.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crypto/src/tls/OcspStatusRequest.cs b/crypto/src/tls/OcspStatusRequest.cs index 8679022ec..00728f64e 100644 --- a/crypto/src/tls/OcspStatusRequest.cs +++ b/crypto/src/tls/OcspStatusRequest.cs @@ -1,11 +1,10 @@ using System; -using System.Collections; +using System.Collections.Generic; using System.IO; using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Asn1.Ocsp; using Org.BouncyCastle.Asn1.X509; -using Org.BouncyCastle.Utilities; using Org.BouncyCastle.Utilities.IO; namespace Org.BouncyCastle.Tls @@ -13,7 +12,7 @@ namespace Org.BouncyCastle.Tls /// <summary>RFC 3546 3.6</summary> public sealed class OcspStatusRequest { - private readonly IList m_responderIDList; + private readonly IList<ResponderID> m_responderIDList; private readonly X509Extensions m_requestExtensions; /// <param name="responderIDList">an <see cref="IList"/> of <see cref="ResponderID"/>, specifying the list of @@ -21,14 +20,14 @@ namespace Org.BouncyCastle.Tls /// the server - e.g., by prior arrangement.</param> /// <param name="requestExtensions">OCSP request extensions. A null value means that there are no extensions. /// </param> - public OcspStatusRequest(IList responderIDList, X509Extensions requestExtensions) + public OcspStatusRequest(IList<ResponderID> responderIDList, X509Extensions requestExtensions) { this.m_responderIDList = responderIDList; this.m_requestExtensions = requestExtensions; } /// <returns>an <see cref="IList"/> of <see cref="ResponderID"/>.</returns> - public IList ResponderIDList + public IList<ResponderID> ResponderIDList { get { return m_responderIDList; } } @@ -80,7 +79,7 @@ namespace Org.BouncyCastle.Tls /// <exception cref="IOException"/> public static OcspStatusRequest Parse(Stream input) { - IList responderIDList = Platform.CreateArrayList(); + var responderIDList = new List<ResponderID>(); { byte[] data = TlsUtilities.ReadOpaque16(input); if (data.Length > 0) |