CMSAttributeTableGenerator.cs 837 B

12345678910111213141516171819202122232425262728
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System.Collections.Generic;
  4. using Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
  5. namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Cms
  6. {
  7. /// <remarks>
  8. /// The 'Signature' parameter is only available when generating unsigned attributes.
  9. /// </remarks>
  10. public enum CmsAttributeTableParameter
  11. {
  12. // const string ContentType = "contentType";
  13. // const string Digest = "digest";
  14. // const string Signature = "encryptedDigest";
  15. // const string DigestAlgorithmIdentifier = "digestAlgID";
  16. ContentType, Digest, Signature, DigestAlgorithmIdentifier
  17. }
  18. public interface CmsAttributeTableGenerator
  19. {
  20. AttributeTable GetAttributes(IDictionary<CmsAttributeTableParameter, object> parameters);
  21. }
  22. }
  23. #pragma warning restore
  24. #endif