Improve documentation and tests of SSLContext.init.

SSLContext.init treats null arrays of KeyManager/TrustManager
different from non-null arrays. In the case of null arrays,
SSLContext.init finds the highest priority implementation of
KeyManagerFactory/TrustManagerFactory and then obtains the required
types of KeyManager/TrustManager from these factories. In the case of
non-null arrays, SSLContext.init obtains each desired type of
KeyManager/TrustManager from the provided arrays only.

Bug: 13563574
Bug: 13563675
Change-Id: I52adc5e7143d4f050be0b22b3b464c10bb97d102
2 files changed