ISignatureFactory.cs 903 B

123456789101112131415161718192021222324252627
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
  5. {
  6. /// <summary>
  7. /// Base interface for operators that serve as stream-based signature calculators.
  8. /// </summary>
  9. public interface ISignatureFactory
  10. {
  11. /// <summary>The algorithm details object for this calculator.</summary>
  12. Object AlgorithmDetails { get ; }
  13. /// <summary>
  14. /// Create a stream calculator for this signature calculator. The stream
  15. /// calculator is used for the actual operation of entering the data to be signed
  16. /// and producing the signature block.
  17. /// </summary>
  18. /// <returns>A calculator producing an IBlockResult with a signature in it.</returns>
  19. IStreamCalculator CreateCalculator();
  20. }
  21. }
  22. #pragma warning restore
  23. #endif