toSecurityPolicy method

SecurityPolicy toSecurityPolicy()

Implementation

SecurityPolicy toSecurityPolicy() {
  switch (this) {
    case 'TLS_1_0':
      return SecurityPolicy.tls_1_0;
    case 'TLS_1_2':
      return SecurityPolicy.tls_1_2;
  }
  throw Exception('$this is not known in enum SecurityPolicy');
}