docs: public static int getDefaultFlags(Type1Message type1) {
          if (type1 == null) return DEFAULT_FLAGS;
          int flags = NTLMSSP_NEGOTIATE_NTLM;
          int type1Flags = type1.getFlags();
          flags |= ((type1Flags & NTLMSSP_NEGOTIATE_UNICODE) != 0) ?
                  NTLMSSP_NEGOTIATE_UNICODE : NTLMSSP_NEGOTIATE_OEM;
          if ((type1Flags & NTLMSSP_REQUEST_TARGET) != 0) {
              String domain = getDefaultDomain();
              if (domain != null) {
                  flags |= NTLMSSP_REQUEST_TARGET | NTLMSSP_TARGET_TYPE_DOMAIN;
              }
          }
          return flags;
      }