> For the complete documentation index, see [llms.txt](https://docs.medcrypt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.medcrypt.com/api-reference/api-reference/namespaces/namespacemedcrypt-guardian-authenticationallowdenyenum.md).

# medcrypt::guardian::AuthenticationAllowDenyEnum

## Types

|      | Name                                                                                                                                            |
| ---- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| enum | [**Type**](/api-reference/api-reference/namespaces/namespacemedcrypt-guardian-authenticationallowdenyenum.md#enum-type) { Allow = 0, Deny = 1 } |

## Functions

|                                                                                                                     | Name                                                                                                                                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| std::string                                                                                                         | [**NameOf**](/api-reference/api-reference/namespaces/namespacemedcrypt-guardian-authenticationallowdenyenum.md#function-nameof)(const [Type](/api-reference/api-reference/namespaces/namespacemedcrypt-guardian-authenticationallowdenyenum.md#enum-type) & in\_enum) |
| [Type](/api-reference/api-reference/namespaces/namespacemedcrypt-guardian-authenticationallowdenyenum.md#enum-type) | [**Enum**](/api-reference/api-reference/namespaces/namespacemedcrypt-guardian-authenticationallowdenyenum.md#function-enum)(const std::string & in\_string)                                                                                                           |
| bool                                                                                                                | [**IsValid**](/api-reference/api-reference/namespaces/namespacemedcrypt-guardian-authenticationallowdenyenum.md#function-isvalid)(const int & in\_value)                                                                                                              |

## Types Documentation

### enum Type

| Enumerator | Value | Description                                               |
| ---------- | ----- | --------------------------------------------------------- |
| Allow      | 0     | specified list is an allow list, an empty list blocks all |
| Deny       | 1     | specified list is a deny list, an empty list allows all   |

## Functions Documentation

### function NameOf

```cpp
std::string NameOf(
    const Type & in_enum
)
```

### function Enum

```cpp
Type Enum(
    const std::string & in_string
)
```

### function IsValid

```cpp
bool IsValid(
    const int & in_value
)
```
