For your SSL protocol (and its successor TLS) a particular algorithm from the cipher suite is defined for each job: critical exchange / authentication, hash functionality (a form of fingerprint of the info that is to be exchanged) and encryption. Therefore the code used a HostnameVerifier for a certain get https://www.hostscheap.com/ssl-certificates