/** * This method enables Server Name Indication (SNI) and overrides the hostname supplied * during engine creation. * * @param engine the engine * @param hostname the desired SNI hostname, or {@code null} to disable */ public static void setHostname(SSLEngine engine, String hostname) { toConscrypt(engine).setHostname(hostname); }
/** * This method enables Server Name Indication (SNI) and overrides the hostname supplied * during engine creation. * * @param engine the engine * @param hostname the desired SNI hostname, or {@code null} to disable */ public static void setHostname(SSLEngine engine, String hostname) { toConscrypt(engine).setHostname(hostname); }