Called to validate the client certificate provided by a peer when the connection is first established.
- iOS 7.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 10.0+
The session that the nearby peer wishes to join.
A certificate chain, presented as an array of SecCertificateRef certificate objects. The first certificate in this chain is the peer’s certificate, which is derived from the identity that the peer provided when it called the
initmethod. The other certificates are the (optional) additional chain certificates provided in that same array.
With Peer: security Identity: encryption Preference:
If the nearby peer did not provide a security identity, then this parameter’s value is
The peer ID of the sender.
Your app should call this handler with a value of
YESif the nearby peer should be allowed to join the session, or
Your app should inspect the nearby peer’s certificate, and then should decide whether to trust that certificate. Upon making that determination, your app should call the provided
certificate block, passing either
YES (to trust the nearby peer) or
NO (to reject it).
For information about validating certificates, read Cryptographic Services Guide.