---
title: CMSSignedAttributes
framework: security
role: symbol
role_heading: Structure
path: security/cmssignedattributes
---

# CMSSignedAttributes

Optional attributes you can add to a signed message.

## Declaration

```swift
struct CMSSignedAttributes
```

## Overview

Overview Use these flags with the CMSEncoderAddSignedAttributes(_:_:) method to cause the encoder to add attributes to a signed message that can be interpreted by the recipient. These attributes are not used for unsigned messages.

## Topics

### Attributes

- [attrSmimeCapabilities](security/cmssignedattributes/attrsmimecapabilities.md)
- [attrSmimeEncryptionKeyPrefs](security/cmssignedattributes/attrsmimeencryptionkeyprefs.md)
- [attrSmimeMSEncryptionKeyPrefs](security/cmssignedattributes/attrsmimemsencryptionkeyprefs.md)
- [attrSigningTime](security/cmssignedattributes/attrsigningtime.md)
- [attrAppleCodesigningHashAgility](security/cmssignedattributes/attrapplecodesigninghashagility.md)
- [attrAppleCodesigningHashAgilityV2](security/cmssignedattributes/attrapplecodesigninghashagilityv2.md)
- [attrAppleExpirationTime](security/cmssignedattributes/attrappleexpirationtime.md)

### Initializers

- [init(rawValue:)](security/cmssignedattributes/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
