---
title: authenticationMethod
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnprotocolipsec/authenticationmethod
---

# 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.

## Declaration

```swift
var authenticationMethod: NEVPNIKEAuthenticationMethod { get set }
```

## Discussion

Discussion If this property is set to NEVPNIKEAuthenticationMethodNone, extended authentication will still be negotiated if useExtendedAuthentication is set to true.

## See Also

### Accessing IPSec properties

- [NEVPNIKEAuthenticationMethod](networkextension/nevpnikeauthenticationmethod.md)
- [useExtendedAuthentication](networkextension/nevpnprotocolipsec/useextendedauthentication.md)
- [sharedSecretReference](networkextension/nevpnprotocolipsec/sharedsecretreference.md)
- [localIdentifier](networkextension/nevpnprotocolipsec/localidentifier.md)
- [remoteIdentifier](networkextension/nevpnprotocolipsec/remoteidentifier.md)
