withTlsLimitations

fun withTlsLimitations(tlsLimitations: Boolean, enableCompatibilityMode: Boolean): HomeServerConnectionConfig.Builder

Convenient method to limit the TLS versions and cipher suites for this Builder Ref:

  • https://www.ssi.gouv.fr/uploads/2017/07/anssi-guide-recommandations_de_securite_relatives_a_tls-v1.2.pdf

  • https://developer.android.com/reference/javax/net/ssl/SSLEngine

Return

this builder

Parameters

tlsLimitations

true to use Tls limitations

enableCompatibilityMode

set to true for Android < 20