toSslProtocol method

SslProtocol toSslProtocol()

Implementation

SslProtocol toSslProtocol() {
  switch (this) {
    case 'SSLv3':
      return SslProtocol.sSLv3;
    case 'TLSv1':
      return SslProtocol.tLSv1;
    case 'TLSv1.1':
      return SslProtocol.tLSv1_1;
    case 'TLSv1.2':
      return SslProtocol.tLSv1_2;
  }
  throw Exception('$this is not known in enum SslProtocol');
}