diff options
author | Peter Dettman <peter.dettman@gmail.com> | 2022-06-21 18:57:52 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@gmail.com> | 2022-06-21 18:57:52 +0700 |
commit | 84a1abd2bb12af82623c136243240e52a88e0bf4 (patch) | |
tree | 5a9828c8785a54c5b293ba484bdd0e2f2431600f /crypto/src/pkcs | |
parent | Update copyright (diff) | |
download | BouncyCastle.NET-ed25519-84a1abd2bb12af82623c136243240e52a88e0bf4.tar.xz |
ObsoleteAttribute cleanup
Diffstat (limited to 'crypto/src/pkcs')
-rw-r--r-- | crypto/src/pkcs/AsymmetricKeyEntry.cs | 11 | ||||
-rw-r--r-- | crypto/src/pkcs/Pkcs10CertificationRequest.cs | 19 | ||||
-rw-r--r-- | crypto/src/pkcs/Pkcs12Entry.cs | 20 | ||||
-rw-r--r-- | crypto/src/pkcs/Pkcs12Store.cs | 6 | ||||
-rw-r--r-- | crypto/src/pkcs/X509CertificateEntry.cs | 11 |
5 files changed, 0 insertions, 67 deletions
diff --git a/crypto/src/pkcs/AsymmetricKeyEntry.cs b/crypto/src/pkcs/AsymmetricKeyEntry.cs index 6da3ade3e..8158bc9fc 100644 --- a/crypto/src/pkcs/AsymmetricKeyEntry.cs +++ b/crypto/src/pkcs/AsymmetricKeyEntry.cs @@ -18,17 +18,6 @@ namespace Org.BouncyCastle.Pkcs this.key = key; } -#if !(SILVERLIGHT || PORTABLE) - [Obsolete] - public AsymmetricKeyEntry( - AsymmetricKeyParameter key, - Hashtable attributes) - : base(attributes) - { - this.key = key; - } -#endif - public AsymmetricKeyEntry( AsymmetricKeyParameter key, IDictionary attributes) diff --git a/crypto/src/pkcs/Pkcs10CertificationRequest.cs b/crypto/src/pkcs/Pkcs10CertificationRequest.cs index c4624bfdc..7f409bcf8 100644 --- a/crypto/src/pkcs/Pkcs10CertificationRequest.cs +++ b/crypto/src/pkcs/Pkcs10CertificationRequest.cs @@ -249,25 +249,6 @@ namespace Org.BouncyCastle.Pkcs /// <param name="subject">X509Name of subject eg OU="My unit." O="My Organisatioin" C="au" </param> /// <param name="publicKey">Public Key to be included in cert reqest.</param> /// <param name="attributes">ASN1Set of Attributes.</param> - /// <param name="signingKey">Ignored.</param> - [Obsolete("Use constructor without 'signingKey' parameter (ignored here)")] - public Pkcs10CertificationRequest( - ISignatureFactory signatureFactory, - X509Name subject, - AsymmetricKeyParameter publicKey, - Asn1Set attributes, - AsymmetricKeyParameter signingKey) - : this(signatureFactory, subject, publicKey, attributes) - { - } - - /// <summary> - /// Instantiate a Pkcs10CertificationRequest object with the necessary credentials. - /// </summary> - ///<param name="signatureFactory">The factory for signature calculators to sign the PKCS#10 request with.</param> - /// <param name="subject">X509Name of subject eg OU="My unit." O="My Organisatioin" C="au" </param> - /// <param name="publicKey">Public Key to be included in cert reqest.</param> - /// <param name="attributes">ASN1Set of Attributes.</param> public Pkcs10CertificationRequest( ISignatureFactory signatureFactory, X509Name subject, diff --git a/crypto/src/pkcs/Pkcs12Entry.cs b/crypto/src/pkcs/Pkcs12Entry.cs index 5dcc94e88..6546f9eee 100644 --- a/crypto/src/pkcs/Pkcs12Entry.cs +++ b/crypto/src/pkcs/Pkcs12Entry.cs @@ -24,26 +24,6 @@ namespace Org.BouncyCastle.Pkcs } } - [Obsolete("Use 'object[index]' syntax instead")] - public Asn1Encodable GetBagAttribute( - DerObjectIdentifier oid) - { - return (Asn1Encodable)this.attributes[oid.Id]; - } - - [Obsolete("Use 'object[index]' syntax instead")] - public Asn1Encodable GetBagAttribute( - string oid) - { - return (Asn1Encodable)this.attributes[oid]; - } - - [Obsolete("Use 'BagAttributeKeys' property")] - public IEnumerator GetBagAttributeKeys() - { - return this.attributes.Keys.GetEnumerator(); - } - public Asn1Encodable this[ DerObjectIdentifier oid] { diff --git a/crypto/src/pkcs/Pkcs12Store.cs b/crypto/src/pkcs/Pkcs12Store.cs index 832367e6b..1e951ace5 100644 --- a/crypto/src/pkcs/Pkcs12Store.cs +++ b/crypto/src/pkcs/Pkcs12Store.cs @@ -732,12 +732,6 @@ namespace Org.BouncyCastle.Pkcs return false; } - [Obsolete("Use 'Count' property instead")] - public int Size() - { - return Count; - } - public int Count { // TODO Seems a little inefficient diff --git a/crypto/src/pkcs/X509CertificateEntry.cs b/crypto/src/pkcs/X509CertificateEntry.cs index 2f81dd87b..9d850f885 100644 --- a/crypto/src/pkcs/X509CertificateEntry.cs +++ b/crypto/src/pkcs/X509CertificateEntry.cs @@ -18,17 +18,6 @@ namespace Org.BouncyCastle.Pkcs this.cert = cert; } -#if !(SILVERLIGHT || PORTABLE) - [Obsolete] - public X509CertificateEntry( - X509Certificate cert, - Hashtable attributes) - : base(attributes) - { - this.cert = cert; - } -#endif - public X509CertificateEntry( X509Certificate cert, IDictionary attributes) |