Instance Method

associate(toEnterpriseNetwork:identity:username:password:)

Connects to the given enterprise network.

Declaration

func associate(toEnterpriseNetwork network: CWNetwork, identity: SecIdentity?, username: String?, password: String?) throws

Parameters

network

The network to which the interface will associate.

username

The username to use for IEEE 802.1X authentication.

password

The password to use for IEEE 802.1X authentication.

identity

The identity to use for IEEE 802.1X authentication. Holds the corresponding client certificate.

error

An NSError object passed by reference, which will be populated with the error code and the error description if an error occurs during the execution of this method. This parameter is optional and can be passed as nil.

Return Value

A Boolean value which will indicate whether or not a failure occurred during execution. YES indicates no error occurred.

Discussion

This method will block for the duration of the association. This operation may require an administrator password.

See Also

Associating to a network

func associate(to: CWNetwork, password: String?)

Associates to a given network using the given network passphrase.