sendSecurityMessage(_:)
Sends a security message to the system.
Declaration
func sendSecurityMessage(_ message: SecurityMessage) throws(AccessorySecuritySession.Error)Parameters
- message:
A security message containing key material.
Discussion
Use this method to initiate key exchange by sending a SecurityMessage with SecurityMessage.KeyType.publicKey. The system responds by calling your handler’s messageReceived(_:completion:) method with encapsulated key material.