---
title: "RoleAttribute"
description: "Namespace: Lacuna.Pki.Certificates.Attributes"
canonical: "https://docs.lacunasoftware.com/api/Lacuna.Pki.Certificates.Attributes/RoleAttribute"
locale: "pt-BR"
product: "PKI SDK"
last_updated: "2026-06-02"
---

# RoleAttribute

**Namespace:** `Lacuna.Pki.Certificates.Attributes`  
**Assembly:** `Lacuna.Pki`  
_Class_

```csharp
public class RoleAttribute
```

**Hierarquia:** [`object`](https://learn.microsoft.com/dotnet/api/system.object) → `RoleAttribute`

## Propriedades

### `RoleAuthority`

```csharp
public GeneralNames RoleAuthority { get; }
```

**Retorno**

[`GeneralNames`](https://docs.lacunasoftware.com/api/Lacuna.Pki/GeneralNames)

---

### `RoleName`

```csharp
public GeneralName RoleName { get; }
```

**Retorno**

[`GeneralName`](https://docs.lacunasoftware.com/api/Lacuna.Pki/GeneralName)

---

## Métodos

### `Decode(byte[])`

```csharp
public static RoleAttribute Decode(byte[] rawAttribute)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `rawAttribute` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |

**Retorno**

[`RoleAttribute`](https://docs.lacunasoftware.com/api/Lacuna.Pki.Certificates.Attributes/RoleAttribute)

---

## Membros herdados

[`ToString()`](https://learn.microsoft.com/dotnet/api/system.object.tostring), [`Equals(object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)>), [`Equals(object, object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)>), [`ReferenceEquals(object, object)`](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [`GetHashCode()`](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [`GetType()`](https://learn.microsoft.com/dotnet/api/system.object.gettype), [`MemberwiseClone()`](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)
