Class

NEVPNProtocolIPSec

Settings for an IPsec VPN configuration.

Declaration

@interface NEVPNProtocolIPSec : NEVPNProtocol

Overview

To configure IKE version 2 (IKEv2), use the NEVPNProtocolIKEv2 subclass. Instantiating NEVPNProtocolIPSec directly implies IKE version 1.

Topics

Accessing IPSec Properties

authenticationMethod

The method used to authenticate the device with the IPSec server. For IKE version 2, when using extended authentication, this authentication method only affects how the client validates the authentication payload presented by the server.

NEVPNIKEAuthenticationMethod

Internet Key Exchange (IKE) authentication methods used to authenticate with the IPSec server.

useExtendedAuthentication

A flag indicating if extended authentication will be negotiated.

sharedSecretReference

A persistent keychain reference to a keychain item containing the IKE shared secret.

localIdentifier

A string identifying the iOS or macOS device for authentication purposes

remoteIdentifier

A string identifying the IPSec server for authentication purposes

Relationships

Inherits From

See Also

VPN Configuration

NEVPNManager

An object to create and manage a Personal VPN configuration.

NEVPNProtocolIKEv2

Settings for an IKEv2 VPN configuration.

NEVPNProtocol

Settings common to both IKEv2 and IPsec VPN configurations.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software