---
title: sharedSecretReference
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnprotocolipsec/sharedsecretreference
---

# sharedSecretReference

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

## Declaration

```swift
var sharedSecretReference: Data? { get set }
```

## Discussion

Discussion The persistent keychain reference must refer to a kerychain item of class kSecClassGenericPassword

## See Also

### Accessing IPSec properties

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