public HTTP_Proxy(final String proxy, int proxy_port, final String user,
                      final String pass) {
        if (proxy != null && !proxy.equals("") && proxy_port >= 0 &&
            proxy_port <= 0xffff) { //vLVKv
            Host = proxy;
            Port = proxy_port;
            //vLVFؕKvH
            if (user == null || pass == null || user.equals("") ||
                pass.equals("")) {
                Cred = null;
            } else {
                int idx = user.indexOf("\\");
                if (idx >= 0) { //NTLM
                    String localhost = "";
                    //[JzXg擾
                    try {
                        localhost = InetAddress.getLocalHost().getHostName();
                    } catch (UnknownHostException ex) {
                        ex.printStackTrace();
                    }
                    //NTLM̏B
                    AuthPolicy.unregisterAuthScheme(AuthPolicy.NTLM);
                    AuthPolicy.registerAuthScheme(AuthPolicy.NTLM,
                                                  OriginalNTLMScheme.class);
                    //Cred
                    Cred = new NTCredentials(user.substring(idx + 1), pass,
                                             localhost, user.substring(0, idx));
                } else { //
                    Cred = new UsernamePasswordCredentials(user, pass);
                }

            }
        } else {
            Port = -1;
        }
    }