diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-25 00:22:45 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-25 00:22:45 +0700 |
commit | 219f2ca1194b7c3c15f43af80ebbf0417abf0116 (patch) | |
tree | aa90fdb22949414cdf8a623bd5c1a9ffdf4d3d15 | |
parent | Add Asn1.Pkcs.CrlBag (diff) | |
download | BouncyCastle.NET-ed25519-219f2ca1194b7c3c15f43af80ebbf0417abf0116.tar.xz |
Fix method name (obsolete old one)
-rw-r--r-- | crypto/src/pkix/PkixParameters.cs | 24 |
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) { |