---
title: keychainReference
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnikev2ppkconfiguration/keychainreference
---

# keychainReference

A persistent reference to the key in the keychain.

## Declaration

```swift
var keychainReference: Data { get }
```

## Discussion

Discussion The keychain item needs to have the class kSecClassGenericPassword.

## See Also

### Accessing the configuration parameters

- [identifier](networkextension/nevpnikev2ppkconfiguration/identifier.md)
- [isMandatory](networkextension/nevpnikev2ppkconfiguration/ismandatory.md)
