summary refs log tree commit diff
path: root/crypto/src/pkcs/X509CertificateEntry.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-06-27 12:36:37 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-06-27 12:36:37 +0700
commit3176c087b90511375c9bbd90cc5a4b5ed7857c35 (patch)
tree8bbe7bb81547c2e9afc719f6fdbcf258698c226c /crypto/src/pkcs/X509CertificateEntry.cs
parentGenerics migration work (diff)
downloadBouncyCastle.NET-ed25519-3176c087b90511375c9bbd90cc5a4b5ed7857c35.tar.xz
Generics migration in Pkcs
Diffstat (limited to 'crypto/src/pkcs/X509CertificateEntry.cs')
-rw-r--r--crypto/src/pkcs/X509CertificateEntry.cs14
1 files changed, 5 insertions, 9 deletions
diff --git a/crypto/src/pkcs/X509CertificateEntry.cs b/crypto/src/pkcs/X509CertificateEntry.cs
index 9d850f885..43aa5b304 100644
--- a/crypto/src/pkcs/X509CertificateEntry.cs
+++ b/crypto/src/pkcs/X509CertificateEntry.cs
@@ -1,7 +1,6 @@
-using System;
-using System.Collections;
+using System.Collections.Generic;
 
-using Org.BouncyCastle.Utilities;
+using Org.BouncyCastle.Asn1;
 using Org.BouncyCastle.X509;
 
 namespace Org.BouncyCastle.Pkcs
@@ -11,16 +10,13 @@ namespace Org.BouncyCastle.Pkcs
     {
         private readonly X509Certificate cert;
 
-		public X509CertificateEntry(
-            X509Certificate cert)
-			: base(Platform.CreateHashtable())
+		public X509CertificateEntry(X509Certificate cert)
+			: base(new Dictionary<DerObjectIdentifier, Asn1Encodable>())
         {
             this.cert = cert;
         }
 
-        public X509CertificateEntry(
-            X509Certificate cert,
-            IDictionary     attributes)
+        public X509CertificateEntry(X509Certificate cert, IDictionary<DerObjectIdentifier, Asn1Encodable> attributes)
 			: base(attributes)
         {
             this.cert = cert;