---
title: passwordReference
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnprotocol/passwordreference
---

# passwordReference

A persistent keychain reference to a keychain item containing the password component of the tunneling protocol authentication credential.

## Declaration

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

## Discussion

Discussion The keychain item must have the kSecClassGenericPassword class.

## See Also

### Authenticating the user

- [username](networkextension/nevpnprotocol/username.md)
- [identityReference](networkextension/nevpnprotocol/identityreference.md)
- [identityData](networkextension/nevpnprotocol/identitydata.md)
- [identityDataPassword](networkextension/nevpnprotocol/identitydatapassword.md)
