---
title: identity
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlcredential/identity
---

# identity

The identity of this credential if it is a client certificate credential.

## Declaration

```swift
var identity: SecIdentity? { get }
```

## Discussion

Discussion This value is nil if the credential is not a client certificate credential.

## See Also

### Getting credential properties

- [user](foundation/urlcredential/user.md)
- [certificates](foundation/urlcredential/certificates.md)
- [hasPassword](foundation/urlcredential/haspassword.md)
- [password](foundation/urlcredential/password.md)
- [persistence](foundation/urlcredential/persistence-swift.property.md)
- [URLCredential.Persistence](foundation/urlcredential/persistence-swift.enum.md)
