TLSConfig constructor

const TLSConfig({
  1. bool? allowInsecure,
  2. @JsonKey.new(name: 'certificates') List<TLSCertConfig>? certs,
  3. String? serverName,
  4. @JsonKey.new(name: 'alpn') XrayStringList? alpn,
  5. bool? enableSessionResumption,
  6. bool? disableSystemRoot,
  7. String? minVersion,
  8. String? maxVersion,
  9. String? cipherSuites,
  10. String? fingerprint,
  11. @JsonKey.new(name: 'rejectUnknownSni') bool? rejectUnknownSNI,
  12. XrayStringList? curvePreferences,
  13. String? masterKeyLog,
  14. String? pinnedPeerCertSha256,
  15. String? verifyPeerCertByName,
  16. List<String>? verifyPeerCertInNames,
  17. String? echServerKeys,
  18. String? echConfigList,
  19. ECHForceQuery? echForceQuery,
  20. @JsonKey.new(name: 'echSockopt') SocketConfig? echSocketSettings,
})

Implementation

const factory TLSConfig({
  bool? allowInsecure,
  @JsonKey(name: 'certificates') List<TLSCertConfig>? certs,
  String? serverName,
  @JsonKey(name: 'alpn') XrayStringList? alpn,
  bool? enableSessionResumption,
  bool? disableSystemRoot,
  String? minVersion,
  String? maxVersion,
  String? cipherSuites,
  String? fingerprint,
  @JsonKey(name: 'rejectUnknownSni') bool? rejectUnknownSNI,
  XrayStringList? curvePreferences,
  String? masterKeyLog,
  String? pinnedPeerCertSha256,
  String? verifyPeerCertByName,
  List<String>? verifyPeerCertInNames,
  String? echServerKeys,
  String? echConfigList,
  ECHForceQuery? echForceQuery,
  @JsonKey(name: 'echSockopt') SocketConfig? echSocketSettings,
}) = _TLSConfig;