AbstractTlsSignerCredentials.cs 665 B

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