• Alex Klyubin's avatar
    Correctly handle empty arrays in SSLContext.init. · b3c6484a
    Alex Klyubin authored
    The contract of SSLContext.init is that empty arrays of
    KeyManager/TrustManager in its parameters are handled differently
    from null arrays. This CL adjusts the behavaior to match the
    contract. Namely, empty arrays mean that SSLContext is being
    initialized without any KeyManagers/TrustManagers rather than with
    default ones.
    
    Bug: 13563675
    Change-Id: I52adc5e7143d4f050be0b22b3b464c10bb97d102
    b3c6484a
SSLParametersImpl.java 16.2 KB