toMinimumProtocolVersion method

MinimumProtocolVersion toMinimumProtocolVersion()

Implementation

MinimumProtocolVersion toMinimumProtocolVersion() {
  switch (this) {
    case 'SSLv3':
      return MinimumProtocolVersion.sSLv3;
    case 'TLSv1':
      return MinimumProtocolVersion.tLSv1;
    case 'TLSv1_2016':
      return MinimumProtocolVersion.tLSv1_2016;
    case 'TLSv1.1_2016':
      return MinimumProtocolVersion.tLSv1_1_2016;
    case 'TLSv1.2_2018':
      return MinimumProtocolVersion.tLSv1_2_2018;
  }
  throw Exception('$this is not known in enum MinimumProtocolVersion');
}