SimpleAttributeTableGenerator.cs 708 B

1234567891011121314151617181920212223242526272829303132
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.Collections;
  5. using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
  6. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
  7. {
  8. /**
  9. * Basic generator that just returns a preconstructed attribute table
  10. */
  11. public class SimpleAttributeTableGenerator
  12. : CmsAttributeTableGenerator
  13. {
  14. private readonly AttributeTable attributes;
  15. public SimpleAttributeTableGenerator(
  16. AttributeTable attributes)
  17. {
  18. this.attributes = attributes;
  19. }
  20. public virtual AttributeTable GetAttributes(
  21. IDictionary parameters)
  22. {
  23. return attributes;
  24. }
  25. }
  26. }
  27. #pragma warning restore
  28. #endif