I have to do https connection and I have found some code here Android/Java -- How to Create HTTPS Connection?
What I want to ask is if this is OK to do, since I have to supply the keystore password also.
What I thought I have to do is to get some ID data when establishing https connection and to discard the connection if it was somehow routed elsewhere (ID not recognized).
Or maybe the http client automatically discards the connection if it sees somehow that the URL address from the certificate is not as the specified one (well I do not think it is this way but you never know). Obviously I am not expert. This example puzzles me.
Thanks Nenad