# OpcSecurity Class

<span class="api-meta">since v2.6</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">OpcSecurity Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides security options used by an application instance to control the authentication, the access and the possible operations between the opponent applications.

## Syntax

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

```csharp
public class OpcSecurity
```

</div>

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

```vbnet
Public Class OpcSecurity
```

</div>

## Inheritance

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

## Derived types

- [OpcClientSecurity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclientsecurity/)
- [OpcServerSecurity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserversecurity/)

## Properties

| Name | Description |
|---|---|
| [AutoAcceptUntrustedCertificates](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsecurity/members#autoacceptuntrustedcertificates) | Gets or sets a value indicating whether the client have to automatically accept untrusted server certificates. |
| [CertificateValidationRules](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsecurity/members#certificatevalidationrules) | Gets or sets a value which defines the different rules to use when validating a certificate. |

## Applies to

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