I know that it is possible to disable TLSv1.0 (or others) in Java using JVM parameters as mentioned in Question 1 or Question 2. Is there any way to disable it in an android App?
I am using JSch to do ssh port forwarding but I don't want TLS Client Hello in TLSv1.0. JSch doesn't have any API for using TLSv1.2 only. So I decided to disable TLSv1.0 application wide.
I already used this but no success.
System.setProperty("https.protocols", "TLSv1.2");
Security.getProviders()
SSLContext.getDefault().getSupportedSSLParameters().setAlgorithmConstraints(algo);