# OpcClientIdentity Class

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.client">Opc.UaFx.Client</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcClientIdentity Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Represents a user identity which is defined by a user name and a password.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public class OpcClientIdentity : OpcUserIdentity
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Class OpcClientIdentity
    Inherits OpcUserIdentity
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcidentity/) → [OpcUserIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcuseridentity/) → **OpcClientIdentity**

## Constructors

| Name | Description |
|---|---|
| [OpcClientIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclientidentity/members#opcclientidentity) | Initializes a new instance of the OpcClientIdentity class using the `userName` and `password` specified. |

## Properties

| Name | Description |
|---|---|
| [DisplayName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclientidentity/members#displayname)<span class="api-meta">override</span> | Gets the name of the identity to display. |
| [Password](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclientidentity/members#password) | Gets the password of the user. |
| [UserName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclientidentity/members#username) | Gets the name of the user. |

## Methods

| Name | Description |
|---|---|
| [Impersonate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclientidentity/members#impersonate)<span class="api-meta">override</span> | Returns an impersonation context which does not impersonate the user. |
| [Matches](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclientidentity/members#matches) | Determines whether the identity is defined by the `userName` and `password` specified. |

Inherits members from [OpcUserIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcuseridentity/members), [OpcIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcidentity/members).

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
