IX509Extension.cs 837 B

12345678910111213141516171819202122232425262728293031
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. using Org.BouncyCastle.Asn1;
  4. using Org.BouncyCastle.Utilities.Collections;
  5. namespace Org.BouncyCastle.X509
  6. {
  7. public interface IX509Extension
  8. {
  9. /// <summary>
  10. /// Get all critical extension values, by oid
  11. /// </summary>
  12. /// <returns>IDictionary with string (OID) keys and Asn1OctetString values</returns>
  13. ISet GetCriticalExtensionOids();
  14. /// <summary>
  15. /// Get all non-critical extension values, by oid
  16. /// </summary>
  17. /// <returns>IDictionary with string (OID) keys and Asn1OctetString values</returns>
  18. ISet GetNonCriticalExtensionOids();
  19. [Obsolete("Use version taking a DerObjectIdentifier instead")]
  20. Asn1OctetString GetExtensionValue(string oid);
  21. Asn1OctetString GetExtensionValue(DerObjectIdentifier oid);
  22. }
  23. }
  24. #endif