0

In my application, I verify a the Android user's identity by giving each user a different client-side SSL certificate. I'd like to use HttpsUrlConnection to connect to the server since that's Google's recommended way.

The user can switch accounts (log out from the current one and log in with a different account). In this scenario, I need to estabilish the HTTPS connections with the new user account's client-side cert.

How will HttpsUrlConnection's connection pooling mechanism work in this environment? How can I force all HTTPS connections in the connection pool using the wrong client-side cert to disconnect?

Zsombor Erdődy-Nagy
  • 16,864
  • 16
  • 76
  • 101

1 Answers1

0

With the, err, disconnect() method.

user207421
  • 305,947
  • 44
  • 307
  • 483