title: SSLSocketFactory in java
body: <p>What role does <code>SSLSocketFactory</code> class in java play when using <code>HttpsURLConnection</code>? The java docs is not of much help. </p>
  
  <p>Are there any ways to bind the keystore and the truststore to with the sslsocketfactory object, to make it point to the keystore and the truststore?</p>
  
  <p>Otherwise how will the connection know the location of the keystore and the truststore(I don't want to use java <code>System Properties</code>)?                                            </p>