---
title: "init(signers:isEncrypted:signingError:encryptionError:)"
framework: mailkit
role: symbol
role_heading: Initializer
path: "mailkit/memessagesecurityinformation/init(signers:isencrypted:signingerror:encryptionerror:)"
---

# init(signers:isEncrypted:signingError:encryptionError:)

Creates a message security information object that indicates if a message is encrypted, who signed it, or if an error occurred when decoding the message.

## Declaration

```swift
init(signers: [MEMessageSigner], isEncrypted: Bool, signingError: (any Error)?, encryptionError: (any Error)?)
```

## Parameters

- `signers`: An array of objects that contain information about who signed the message.
- `isEncrypted`: A Boolean value that indicates if the message is encrypted.
- `signingError`: An error that indicates the security handler couldn’t decode the message’s digital signatures.
- `encryptionError`: An error that indicates the security handler couldn’t decrypt the message.

## See Also

### Describing Message Security Attributes

- [isEncrypted](mailkit/memessagesecurityinformation/isencrypted.md)
- [encryptionError](mailkit/memessagesecurityinformation/encryptionerror.md)
- [signers](mailkit/memessagesecurityinformation/signers.md)
- [signingError](mailkit/memessagesecurityinformation/signingerror.md)
