# MessageSecurityMode

## class MessageSecurityMode(value)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object "(in Python v3.15)")

A semantic OPC UA integer value with typed constants and equality.

Construct a semantic value from its native integer representation.

Parameters:
:   **value** ([*int*](https://docs.python.org/3/builtins/functions.html#int "(in Python v3.15)"))

    Native numeric value or flag bits.

Returns:
:   *object* – The corresponding typed wrapper.

Examples

```
>>> from instro.opcua.types import AttributeId
>>> AttributeId(13) == AttributeId.VALUE
True
```

Attributes

| [`NONE`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.MessageSecurityMode.md#instro.opcua.types.MessageSecurityMode.NONE "instro.opcua.types.MessageSecurityMode.NONE") |  |
| --- | --- |
| [`SIGN`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.MessageSecurityMode.md#instro.opcua.types.MessageSecurityMode.SIGN "instro.opcua.types.MessageSecurityMode.SIGN") |  |
| [`SIGN_AND_ENCRYPT`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.MessageSecurityMode.md#instro.opcua.types.MessageSecurityMode.SIGN_AND_ENCRYPT "instro.opcua.types.MessageSecurityMode.SIGN_AND_ENCRYPT") |  |
| [`value`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.MessageSecurityMode.md#instro.opcua.types.MessageSecurityMode.value "instro.opcua.types.MessageSecurityMode.value") |  |

### NONE = MessageSecurityMode(1)

### SIGN = MessageSecurityMode(2)

### SIGN_AND_ENCRYPT = MessageSecurityMode(3)

### value
