TlsFatalAlertReceived.cs 647 B

12345678910111213141516171819202122232425
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
  5. {
  6. public class TlsFatalAlertReceived
  7. : TlsException
  8. {
  9. private readonly byte alertDescription;
  10. public TlsFatalAlertReceived(byte alertDescription)
  11. : base(Tls.AlertDescription.GetText(alertDescription), null)
  12. {
  13. this.alertDescription = alertDescription;
  14. }
  15. public virtual byte AlertDescription
  16. {
  17. get { return alertDescription; }
  18. }
  19. }
  20. }
  21. #pragma warning restore
  22. #endif