title: Java: Overriding function to disable SSL certificate check
body: <p>The web service is rest over SSL and it has self signed certificate, hosted in remote system.I have already created a client accessing that web service. This is done by adding the certificate to the  <a href="https://stackoverflow.com/questions/19628753/java-add-self-signed-certificate-to-keystore-programatically">key store programatically</a>.</p>
  
  <p>Now I heard that, it is not necessary to add certificate to key store for accesing a self signed web service. <strong>Instead we can disable the certificate check by overriding some methods. Is this true? Which are those methods?</strong> Please help.</p>