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/x509 | |
parent | Update copyright (diff) | |
download | BouncyCastle.NET-ed25519-84a1abd2bb12af82623c136243240e52a88e0bf4.tar.xz |
ObsoleteAttribute cleanup
Diffstat (limited to 'crypto/src/x509')
-rw-r--r-- | crypto/src/x509/IX509Extension.cs | 3 | ||||
-rw-r--r-- | crypto/src/x509/X509ExtensionBase.cs | 15 | ||||
-rw-r--r-- | crypto/src/x509/store/X509CertStoreSelector.cs | 6 |
3 files changed, 1 insertions, 23 deletions
diff --git a/crypto/src/x509/IX509Extension.cs b/crypto/src/x509/IX509Extension.cs index e861e8736..a08f5e052 100644 --- a/crypto/src/x509/IX509Extension.cs +++ b/crypto/src/x509/IX509Extension.cs @@ -19,9 +19,6 @@ namespace Org.BouncyCastle.X509 /// <returns>IDictionary with string (OID) keys and Asn1OctetString values</returns> ISet GetNonCriticalExtensionOids(); - [Obsolete("Use version taking a DerObjectIdentifier instead")] - Asn1OctetString GetExtensionValue(string oid); - Asn1OctetString GetExtensionValue(DerObjectIdentifier oid); } } diff --git a/crypto/src/x509/X509ExtensionBase.cs b/crypto/src/x509/X509ExtensionBase.cs index aaf6695c0..af3907773 100644 --- a/crypto/src/x509/X509ExtensionBase.cs +++ b/crypto/src/x509/X509ExtensionBase.cs @@ -51,20 +51,7 @@ namespace Org.BouncyCastle.X509 return GetExtensionOids(true); } - /// <summary> - /// Get the value of a given extension. - /// </summary> - /// <param name="oid">The object ID of the extension. </param> - /// <returns>An Asn1OctetString object if that extension is found or null if not.</returns> - [Obsolete("Use version taking a DerObjectIdentifier instead")] - public Asn1OctetString GetExtensionValue( - string oid) - { - return GetExtensionValue(new DerObjectIdentifier(oid)); - } - - public virtual Asn1OctetString GetExtensionValue( - DerObjectIdentifier oid) + public virtual Asn1OctetString GetExtensionValue(DerObjectIdentifier oid) { X509Extensions exts = GetX509Extensions(); if (exts != null) diff --git a/crypto/src/x509/store/X509CertStoreSelector.cs b/crypto/src/x509/store/X509CertStoreSelector.cs index f92a4ac03..6ab610762 100644 --- a/crypto/src/x509/store/X509CertStoreSelector.cs +++ b/crypto/src/x509/store/X509CertStoreSelector.cs @@ -109,12 +109,6 @@ namespace Org.BouncyCastle.X509.Store set { issuer = value; } } - [Obsolete("Avoid working with X509Name objects in string form")] - public string IssuerAsString - { - get { return issuer != null ? issuer.ToString() : null; } - } - public bool[] KeyUsage { get { return CopyBoolArray(keyUsage); } |