How to use my keystore in my application for HttpsUrlConnection?
I wanted to make secure connection, for that am using HttpsUrlConnection in my application. I also had an CA certificate for the URL which am using. and also as per the suggestions from other sites, have created keystore named mystore.bks for that certificate.
The problem is that, am making this connection part in a seperate thread. I want sample piece of code to use this keystore with HttpsUrlConnection within a thread.
Pl开发者_高级运维ease answer how to do this.
Thanks in advance.
Do it the standard way.
Get a hash of the keystore, and then send it along in the http request.
Add the same hash on the server, and then check it when the request is sent.
精彩评论