# OpcIdentity Class

<span class="api-meta">abstract</span>

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</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">OpcIdentity Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Represents the identity of a user, which is described by a token.

## Syntax

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

```csharp
public abstract class OpcIdentity
```

</div>

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

```vbnet
Public MustInherit Class OpcIdentity
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcIdentity**

## Derived types

- [OpcClassicIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.classic.opcclassicidentity/)
- [OpcUserIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcuseridentity/)

## Constructors

| Name | Description |
|---|---|
| [OpcIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcidentity/members#opcidentity)<span class="api-meta">protected</span> | Initializes a new instance of the OpcIdentity class using the `token` specified. |

## Properties

| Name | Description |
|---|---|
| [DisplayName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcidentity/members#displayname)<span class="api-meta">abstract</span> | Gets the name of the identity to display. |
| [Token](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcidentity/members#token) | Gets the token which describes the identity. |

## Methods

| Name | Description |
|---|---|
| [Impersonate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcidentity/members#impersonate)<span class="api-meta">abstract</span> | Impersonates the user represented by the identity. |

## Applies to

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