IX509Extension.cs 822 B

12345678910111213141516171819202122232425262728
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.Collections.Generic;
  5. using Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1;
  6. namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.X509
  7. {
  8. public interface IX509Extension
  9. {
  10. /// <summary>
  11. /// Get all critical extension values, by oid
  12. /// </summary>
  13. /// <returns>IDictionary with string (OID) keys and Asn1OctetString values</returns>
  14. ISet<string> GetCriticalExtensionOids();
  15. /// <summary>
  16. /// Get all non-critical extension values, by oid
  17. /// </summary>
  18. /// <returns>IDictionary with string (OID) keys and Asn1OctetString values</returns>
  19. ISet<string> GetNonCriticalExtensionOids();
  20. Asn1OctetString GetExtensionValue(DerObjectIdentifier oid);
  21. }
  22. }
  23. #pragma warning restore
  24. #endif