setIdentity(_:)
Sets the client identity for EAP authentication.
Declaration
func setIdentity(_ identity: SecIdentity) -> BoolParameters
- identity:
The EAP peer identity, a
SecIdentityRefobject that contains aSecKeyRefobject and an associatedSecCertificateRefobject.
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.
Discussion
Your app must store SecIdentity in the keychain access group $(TeamIdentifierPrefix)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.