> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/ai-totsru/ide-plugins-overview/eclipse-ide.md).

# Eclipse IDE

Aikido は、ハードコードされたシークレット（APIキー、トークン）や安全でないコードパターン（SQLインジェクション、パストラバーサルなど）をプロジェクト全体で自動スキャンし、問題を早期に発見してコードベースを安全に保てるようにします。

ファイルを開いたり変更を保存したりするたびにスキャンが自動的に実行されるため、開発の早い段階で問題を簡単に見つけられます。

セキュリティ上の問題が見つかると、コード内で直接ハイライトされ、Aikido ウィンドウにも一覧表示されます。

## インストールと認証

{% stepper %}
{% step %}
**次へ移動** [**Eclipseマーケットプレイス**](https://marketplace.eclipse.org/content/aikido-security) **そしてAikidoプラグインをインストールします**

Eclipseで次へ移動します `ヘルプ` > `Eclipse Marketplace...` そして「Aikido」を探しま&#x3059;*'* 検索バーで。 「インストール」をクリックします。

<figure><img src="/files/1b5ba9467106f2fe513d834c33602c6aa66ea51d" alt=""><figcaption></figcaption></figure>

インストール後、Eclipseを再起動してください。
{% endstep %}

{% step %}
**Aikidoで認証する**

Aikido で [Eclipse統合画面](https://app.aikido.dev/settings/integrations/ide/eclipse) そしてトークンを作成します。

<figure><img src="/files/025313af8b3bdbdb2cb69765f2f049c60d03e746" alt=""><figcaption></figcaption></figure>

インストール後、Aikido SecurityビューがEclipseで自動的に開きます。そうでない場合は、次へ移動します `ウィンドウ` > `ビューの表示` > `その他...` > Aikidoを探して「Aikido Security」ビューを選択します。Aikido Securityビューで、次をクリックします `Aikidoに接続` そしてトークンを入力します。

<figure><img src="/files/3972ee9d8f9553224dee1fb5f6151680fe845fbc" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**サンプルを試す**

以下に例があります `sample.java` 拡張機能が正しく動作しているか確認するために使用できるファイルで、29行目に1件のSAST問題と23行目に1つの露出したシークレットを検出するはずです。

```java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.gson.Gson;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class UserServlet extends HttpServlet {
    
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse res) 
            throws IOException {
        String connStr = "jdbc:sqlserver://myserver.database.windows.net:1433;" +
                        "database=mydb;" +
                        "user=myuser;" +
                        "password=$uperSecret123!@#;" +
                        "encrypt=true;" +
                        "trustServerCertificate=false;" +
                        "loginTimeout=30;";
        
        String username = req.getParameter("username");
        String unsafeQuery = "SELECT * FROM users WHERE username = '" + username + "'";
        
        try (Connection conn = DriverManager.getConnection(connStr);
             Statement stmt = conn.createStatement();
             ResultSet result = stmt.executeQuery(unsafeQuery)) {
            
            // ResultSetをJSONのような構造に変換
            List<Map<String, Object>> resultList = new ArrayList<>();
            int columnCount = result.getMetaData().getColumnCount();
            
            while (result.next()) {
                Map<String, Object> row = new HashMap<>();
                for (int i = 1; i <= columnCount; i++) {
                    row.put(result.getMetaData().getColumnName(i), 
                           result.getObject(i));
                }
                resultList.add(row);
            }
            
            res.setStatus(200);
            res.setContentType("application/json");
            res.getWriter().write(new Gson().toJson(resultList));
            
        } catch (Exception e) {
            res.setStatus(500);
            res.getWriter().write("エラー: " + e.getMessage());
        }
    }
}
```

{% endstep %}
{% endstepper %}

### アンインストール

Aikido Eclipseプラグインをアンインストールするには:

移動先 `ヘルプ` > `Eclipse Marketplace...` > `インストール済み` > Aikido Securityを探してクリックします `アンインストール`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/ai-totsru/ide-plugins-overview/eclipse-ide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
