> For the complete documentation index, see [llms.txt](https://smuddgge.gitbook.io/kerb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smuddgge.gitbook.io/kerb/developer-api.md).

# Developer API

Interacting with kerb.

## Connecting to the Server

<pre class="language-java"><code class="lang-java">KerbClient client = new KerbClient(
    port,
    address,
    clientCertificate,
    serverCertificate,
    password,
    autoReconnect,
    reconnectCooldown,
    maxReconnectionAttempts
);
<strong>client.connect();
</strong></code></pre>

You can also create a connection factory:

```java
KerbClientFactory factory = new KerbClientFactory(
    port,
    address,
    clientCertificate,
    serverCertificate,
    password,
    autoReconnect,
    reconnectCooldown,
    maxReconnectionAttempts
);

KerbClient client = factory.create();
client.connect();
```
