identifier
TypeScriptget identifier(): (string) | nullSwift declarationlet identifier: String?An identifier used to derive HPKE keys.
struct · iOS 26.5+ · SDK 27.1
struct SecurityMessageA message carrying key material used to negotiate a secure channel between a host and an accessory.
get identifier(): (string) | nullSwift declarationlet identifier: String?An identifier used to derive HPKE keys.
get cipherSuite(): SecurityMessage_CipherSuiteSwift declarationlet cipherSuite: SecurityMessage.CipherSuiteThe cipher suite used for key exchange.
get description(): stringSwift declarationvar description: String { get }A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.
get supportedTransports(): Array<AccessoryTransport>Swift declarationlet supportedTransports: [AccessoryTransport]The supported transports to send sensitive information. Default is `Bluetooth`.
get key(): ArrayBufferSwift declarationlet key: DataThe key data carried by this message.
static init(keyType: SecurityMessage_KeyType, cipherSuite: SecurityMessage_CipherSuite, version: SecurityMessage_CipherSuite_Version, key: ArrayBuffer, supportedTransports?: Array<AccessoryTransport>, identifier?: (string) | null): SecurityMessageSwift declarationinit(keyType: SecurityMessage.KeyType, cipherSuite: SecurityMessage.CipherSuite, version: SecurityMessage.CipherSuite.Version, key: Data, supportedTransports: [AccessoryTransport] = [.bluetooth], identifier: String? = nil)Creates a security message. - Parameters: - keyType: The type of key carried by this message. - cipherSuite: The cipher suite used for key exchange. - version: The cipher suite version. - key: The key data. - supportedTransports: The supported transports by accessory for sending sensitive information. Default is Bluetooth. - identifier: An optional identifier for HPKE key derivation (Bluetooth identifier).
get keyType(): SecurityMessage_KeyTypeSwift declarationlet keyType: SecurityMessage.KeyTypeThe type of key carried by this message.
get version(): SecurityMessage_CipherSuite_VersionSwift declarationlet version: SecurityMessage.CipherSuite.VersionThe cipher suite version.
No declarations were skipped in this snapshot.