The HostnameVerifier that works the same way as Curl and Firefox.
The hostname must match either the first CN, or any of the subject-alts.
A… API Doc
The Strict HostnameVerifier works the same way as Sun Java 1.4, Sun
Java 5, Sun Java 6-rc. It's also pretty close to IE6. This
implementation… API Doc
The ALLOW_ALL HostnameVerifier essentially turns hostname verification
off. This implementation is a no-op, and never throws the SSLException. API Doc
Layered socket factory for TLS/SSL connections, based on JSSE.
SSLSocketFactory can be used to validate the identity of the HTTPS
server… API Doc
Interface for checking if a hostname matches the names stored inside the
server's X.509 certificate. Implements javax.net.ssl.HostnameVerifier,… API Doc