public final OkHttpChannelBuilder connectionSpec ( com . squareup . okhttp . ConnectionSpec connectionSpec ) { Preconditions . checkArgument ( connectionSpec . isTls ( ) , "plaintext ConnectionSpec is not accepted" ) ; this . connectionSpec = Utils . convertSpec ( connectionSpec ) ; return this ; }
For secure connection provides a ConnectionSpec to specify Cipher suite and TLS versions .