/** * Gets the application-layer protocols (ALPN) in prioritization order. * * @param engine the engine * @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(SSLEngine engine) { return toConscrypt(engine).getApplicationProtocols(); }
/** * Gets the application-layer protocols (ALPN) in prioritization order. * * @param engine the engine * @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(SSLEngine engine) { return toConscrypt(engine).getApplicationProtocols(); }