public static String getHostname(SSLEngine engine) {
        return toConscrypt(engine).getHostname();
    }
Returns either the hostname supplied during socket creation or via
{@link #setHostname(SSLEngine, String)}. No DNS resolution is attempted before
returning the hostname.
common/src/main/java/org/conscrypt/Conscrypt.java