public class Platform extends Object
Supported on Android 2.3+.
Supported on OpenJDK 7+
Supported on Android 2.3+.
Supported on Android 4.0+.
Supported on Android 5.0+. The APIs were present in Android 4.4, but that implementation was unstable. Supported on OpenJDK 9 via SSLParameters and SSLSocket features.
Supported on Android 2.3+ and OpenJDK 7+. There are no public APIs to recover the trust
manager that was used to create an SSLSocketFactory.
Supported on Android 6.0+ via NetworkSecurityPolicy.
| Constructor and Description |
|---|
Platform() |
public static final int INFO
public static final int WARN
public static Platform get()
public static boolean isConscryptPreferred()
public String getPrefix()
protected X509TrustManager trustManager(SSLSocketFactory sslSocketFactory)
public void configureTlsExtensions(SSLSocket sslSocket, String hostname, List<Protocol> protocols)
public void afterHandshake(SSLSocket sslSocket)
public void connectSocket(Socket socket, InetSocketAddress address, int connectTimeout) throws IOException
IOExceptionpublic boolean isCleartextTrafficPermitted(String hostname)
public CertificateChainCleaner buildCertificateChainCleaner(X509TrustManager trustManager)
public CertificateChainCleaner buildCertificateChainCleaner(SSLSocketFactory sslSocketFactory)
public SSLContext getSSLContext()
public TrustRootIndex buildTrustRootIndex(X509TrustManager trustManager)
public void configureSslSocketFactory(SSLSocketFactory socketFactory)
Copyright © 2019. All rights reserved.