Package 

Class Platform


  • 
    public class Platform
    
                        

    Access to platform-specific features.

    Server name indication (SNI)

    Supported on Android 2.3+. Supported on OpenJDK 7+

    Session Tickets

    Supported on Android 2.3+.

    Android Traffic Stats (Socket Tagging)

    Supported on Android 4.0+.

    ALPN (Application Layer Protocol Negotiation)

    Supported on Android 5.0+. The APIs were present in Android 4.4, but that implementation was unstable. Supported on OpenJDK 7 and 8 (via the JettyALPN-boot library). Supported on OpenJDK 9 via SSLParameters and SSLSocket features.

    Trust Manager Extraction

    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.

    Android Cleartext Permit Detection

    Supported on Android 6.0+ via {@code NetworkSecurityPolicy}.