Structure

CMSSignedAttributes

Optional attributes you can add to a signed message.

Declaration

struct CMSSignedAttributes

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

static var attrSmimeCapabilities: CMSSignedAttributes

Identify signature, encryption, and digest algorithms supported by the encoder.

static var attrSmimeEncryptionKeyPrefs: CMSSignedAttributes

Indicate that the signing certificate included with the message is the preferred one for S/MIME encryption.

static var attrSmimeMSEncryptionKeyPrefs: CMSSignedAttributes

Indicate that the signing certificate included with the message is the preferred one for S/MIME encryption, but using an attribute object identifier (OID) preferred by Microsoft.

static var attrAppleCodesigningHashAgilityV2: CMSSignedAttributes

Include Apple codesigning hash agility, version 2.

Initializers

init(rawValue: UInt32)

Initializes a new attributes structure.

Relationships

Conforms To

See Also

Message Creation

func CMSEncoderAddRecipients(CMSEncoder, CFTypeRef) -> OSStatus

Specifies a message is to be encrypted and specifies the recipients of the message.

func CMSEncoderSetHasDetachedContent(CMSEncoder, Bool) -> OSStatus

Specifies whether the signed data is to be separate from the message.

func CMSEncoderSetEncapsulatedContentTypeOID(CMSEncoder, CFTypeRef) -> OSStatus

Specifies an object identifier for the encapsulated data of a signed message.

func CMSEncoderSetCertificateChainMode(CMSEncoder, CMSCertificateChainMode) -> OSStatus

Specifies which certificates to include in a signed CMS message.

enum CMSCertificateChainMode

Constants that can be set to specify what certificates to include in a signed message.

func CMSEncoderSetSignerAlgorithm(CMSEncoder, CFString) -> OSStatus

Sets the digest algorithm to use for the signer.