summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-01-25 00:22:45 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-01-25 00:22:45 +0700
commit219f2ca1194b7c3c15f43af80ebbf0417abf0116 (patch)
treeaa90fdb22949414cdf8a623bd5c1a9ffdf4d3d15
parentAdd Asn1.Pkcs.CrlBag (diff)
downloadBouncyCastle.NET-ed25519-219f2ca1194b7c3c15f43af80ebbf0417abf0116.tar.xz
Fix method name (obsolete old one)
-rw-r--r--crypto/src/pkix/PkixParameters.cs24
1 files changed, 15 insertions, 9 deletions
diff --git a/crypto/src/pkix/PkixParameters.cs b/crypto/src/pkix/PkixParameters.cs
index 89124f2e9..0eb43c000 100644
--- a/crypto/src/pkix/PkixParameters.cs
+++ b/crypto/src/pkix/PkixParameters.cs
@@ -542,19 +542,25 @@ namespace Org.BouncyCastle.Pkix
 			return new List<IStore<X509Crl>>(m_storesCrl);
 		}
 
+		[Obsolete("Use 'SetStoresAttrCert' instead")]
 		public virtual void SetAttrStoresCert(IList<IStore<X509V2AttributeCertificate>> storesAttrCert)
 		{
-			if (storesAttrCert == null)
-			{
-				m_storesAttrCert = new List<IStore<X509V2AttributeCertificate>>();
-			}
-			else
-			{
-				m_storesAttrCert = new List<IStore<X509V2AttributeCertificate>>(storesAttrCert);
-			}
+			SetStoresAttrCert(storesAttrCert);
 		}
 
-		public virtual void SetStoresCert(IList<IStore<X509Certificate>> storesCert)
+        public virtual void SetStoresAttrCert(IList<IStore<X509V2AttributeCertificate>> storesAttrCert)
+        {
+            if (storesAttrCert == null)
+            {
+                m_storesAttrCert = new List<IStore<X509V2AttributeCertificate>>();
+            }
+            else
+            {
+                m_storesAttrCert = new List<IStore<X509V2AttributeCertificate>>(storesAttrCert);
+            }
+        }
+
+        public virtual void SetStoresCert(IList<IStore<X509Certificate>> storesCert)
 		{
 			if (storesCert == null)
 			{