[SDK reference](../../index.md) / [Models](../index.md) / [Messaging](index.md)

# BrokerCredentials

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Messaging`  

A user of the broker's account: a random username and password, returned once (W141; ADR-0902: never to an agent).The password is stored sealed under the project's key; the server holds the user until `expiresAt`.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Account` | `string?` | `account` | The broker's NATS account. |
| `Active` | `bool?` | `active` | True when the broker server already holds the user; false when it did not take it within the wait (it will shortly). |
| `Broker` | `string?` | `broker` | The broker's resource name. |
| `Endpoint` | `string?` | `endpoint` | The client URL to connect to. |
| `ExpiresAt` | `DateTimeOffset?` | `expiresAt` | When the server stops accepting it (UTC). |
| `IssuedAt` | `DateTimeOffset?` | `issuedAt` | When the credential was issued (UTC). |
| `Password` | `string?` | `password` | The password, shown only in this response. |
| `TtlSeconds` | `int?` | `ttlSeconds` | Lifetime in seconds. |
| `Username` | `string?` | `username` | The username. |
