Copied from the not-yet-commons-ssl project at http://juliusdavies.ca/commons-ssl/
As the above project is accepted into Apache and its JARs become available in
the Maven 2 repos, we will have to switch to using the JARs instead
Interface for checking if a hostname matches the names stored inside the
server's X.509 certificate.
This interface is a point of control for Axis2 (and Sandesha2 in particular) to control
the behaviour of a Request-Response transport such as HTTP/s
For nhttp, this does not make much of a difference, as we are capable of keeping a socket open
and writing to it from a different thread, while letting the initial thread that read the request
go free.