I've noticed that Android provides two very similar classes as default hostname verifiers.
The default one used by HttpsURLConnection
is javax.net.ssl.DefaultHostnameVerifier.
There's another one though, org.apache.http.conn.ssl.BrowserCompatHostnameVerifier
, which is supposedly the same.
Why are these two provided and which one should be used for default verification?