# OpcUserNameAcl Class

> Reference: Represents the access control list of an OpcServerSecurity which authenticates user name identity tokens using the OpcServerIdentity instances of its entries.

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.server">Opc.UaFx.Server</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">OpcUserNameAcl Members</a></dd>
</dl>

Represents the access control list of an [OpcServerSecurity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserversecurity/) which authenticates user name identity tokens using the [OpcServerIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserveridentity/) instances of its entries.

## Syntax

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

```csharp
public class OpcUserNameAcl : OpcAccessControlList
```

</div>

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

```vbnet
Public Class OpcUserNameAcl
    Inherits OpcAccessControlList
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcAccessControlList](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcaccesscontrollist/) → **OpcUserNameAcl**

## Constructors

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

## Properties

| Name | Description |
|---|---|
| [TokenType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcusernameacl/members#tokentype)<span class="api-meta">protected · override · since v2.42</span> | Gets the type of the identity tokens the list is responsible for. |

## Methods

| Name | Description |
|---|---|
| [AddEntry](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcusernameacl/members#addentry)<span class="api-meta">9 overloads</span> | Adds an entry for the `identity` specified. |
| [Authenticate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcusernameacl/members#authenticate)<span class="api-meta">override · since v2.42</span> | Authenticates the `identityToken` specified if it is a user name identity token which matches the [OpcServerIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserveridentity/) of an entry. |

Inherits members from [OpcAccessControlList](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcaccesscontrollist/members).

## Applies to

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