private byte[] getType1Msg(NTCredentials cre) {
        ByteArrayOutputStream baos = new ByteArrayOutputStream(256);
        //͕KASCIIA啶
        byte[] domain = EncodingUtil.getBytes
                        (cre.getDomain().toUpperCase(), "ASCII");
        byte[] work = EncodingUtil.getBytes
                      (cre.getHost().toUpperCase(), "ASCII");
        //
        try {
            baos.write(NTLM_HEADER);
            baos.write(TYPE1_HEADER);
            //tO
            Util.writeInteger(baos, 0x00003205);
            /*hCEZLeBobt@*/
            //
            byte[] dm_length = convertShort(domain.length);
            baos.write(dm_length);
            baos.write(dm_length);
            //ItZbg
            baos.write(convertShort(32));
            //0pfBO
            baos.write(0);
            baos.write(0);
            /*[NXe[VEZLeBobt@*/
            //
            byte[] wk_length = convertShort(work.length);
            baos.write(wk_length);
            baos.write(wk_length);
            //ItZbg
            baos.write(convertShort(32 + domain.length));
            //0pfBO
            baos.write(0);
            baos.write(0);
            /*ۂ̃f[^*/
            //hC
            baos.write(domain);
            //[NXe[V
            baos.write(work);
            //ꉞ
            baos.flush();
        } catch (IOException ex) {
            ex.printStackTrace();
        }
        return baos.toByteArray();
    }