/** * Gets the application-layer protocols (ALPN) in prioritization order. * * @param socket the socket * @return the protocols in descending order of preference, or an empty array if protocol * indications are not being used. Always returns a new array. */ public static String[] getApplicationProtocols(SSLSocket socket) { return toConscrypt(socket).getApplicationProtocols(); }
/** * Gets the application-layer protocols (ALPN) in prioritization order. * * @param socket the socket * @return the protocols in descending order of preference, or an empty array if protocol * indications are not being used. Always returns a new array. */ public static String[] getApplicationProtocols(SSLSocket socket) { return toConscrypt(socket).getApplicationProtocols(); }