• Alex Klyubin's avatar
    Support duck-typed PSKKeyManager instances in SSLContext.init. · 0b4bf3b3
    Alex Klyubin authored
    On some platforms there are multiple classes defining the
    PSKKeyManager interface. At the moment, SSLContext.init does not
    handle this situation.
    
    This CL makes SSLContext.init treat KeyManager instances which expose
    all the methods of PSKKeyManager interface as implementing this
    interface. This duck-typing is achieved via Reflection.
    
    Change-Id: I8a3146a9cabb3f951c95ca6d86d72589e0344fc1
    0b4bf3b3
SSLParametersImpl.java 40.3 KB