# OpcUserNameIdentityToken Members

> Reference: Represents the user identity token of a client which identifies a user using a user name and a password.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcUserNameIdentityToken</a></dd>
<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>
</dl>

## Properties

### DecryptedPassword

Gets the decrypted password of the user.

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

```csharp
public string DecryptedPassword { get; }
```

</div>

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

```vbnet
Public ReadOnly Property DecryptedPassword As String
```

</div>

**Property value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The decrypted password passed by the client.

### UserName

Gets the name of the user.

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

```csharp
public string UserName { get; }
```

</div>

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

```vbnet
Public ReadOnly Property UserName As String
```

</div>

**Property value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The user name passed by the client.

## Operators

### Implicit

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

Converts an <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.UserNameIdentityToken">UserNameIdentityToken</abbr> to an [OpcUserNameIdentityToken](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcusernameidentitytoken/) object.

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

```csharp
public static implicit operator OpcUserNameIdentityToken(
    UserNameIdentityToken userNameIdentityToken)
```

</div>

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

```vbnet
Public Shared Widening Operator CType(
    userNameIdentityToken As UserNameIdentityToken) As OpcUserNameIdentityToken
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `userNameIdentityToken` | <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.UserNameIdentityToken">UserNameIdentityToken</abbr> | A <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.UserNameIdentityToken">UserNameIdentityToken</abbr> that represents the user name identity token. |

**Returns**

[OpcUserNameIdentityToken](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcusernameidentitytoken/)

An instance of the [OpcUserNameIdentityToken](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcusernameidentitytoken/) class initialized from the `userNameIdentityToken`.
