Instance Method


Sets the client identity for EAP authentication.


- (BOOL)setIdentity:(SecIdentityRef)identity;



The EAP peer identity, a SecIdentityRef object that contains a SecKeyRef object and an associated SecCertificateRef object.

Return Value

Returns false if the parameter is not an object of SecIdentityRef type or if the persistent reference is not found in the application's keychain; otherwise returns true.


Your app must store SecIdentity in the keychain access group $(Team​Identifier​Prefix)com​.apple​.networkextensionsharing. The OS uses SecItemCopyMatching to obtain a persistent reference to this identity from the application’s keychain and uses it during EAP authentication.

See Also

Setting Keychain-based EAP Properties

- setTrustedServerCertificates:

Sets trusted EAP server certificates for an enterprise Wi-Fi or Hotspot 2.0 network.