toTLSSecurityPolicy method

TLSSecurityPolicy toTLSSecurityPolicy()

Implementation

TLSSecurityPolicy toTLSSecurityPolicy() {
  switch (this) {
    case 'Policy-Min-TLS-1-0-2019-07':
      return TLSSecurityPolicy.policyMinTls_1_0_2019_07;
    case 'Policy-Min-TLS-1-2-2019-07':
      return TLSSecurityPolicy.policyMinTls_1_2_2019_07;
  }
  throw Exception('$this is not known in enum TLSSecurityPolicy');
}