AbstractTlsSignerCredentials.cs 735 B

123456789101112131415161718192021222324
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.IO;
  5. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
  6. {
  7. public abstract class AbstractTlsSignerCredentials
  8. : AbstractTlsCredentials, TlsSignerCredentials
  9. {
  10. /// <exception cref="IOException"></exception>
  11. public abstract byte[] GenerateCertificateSignature(byte[] hash);
  12. public virtual SignatureAndHashAlgorithm SignatureAndHashAlgorithm
  13. {
  14. get
  15. {
  16. throw new InvalidOperationException("TlsSignerCredentials implementation does not support (D)TLS 1.2+");
  17. }
  18. }
  19. }
  20. }
  21. #pragma warning restore
  22. #endif