---
title: kSecAttrSubject
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecattrsubject
---

# kSecAttrSubject

A key whose value indicates the item’s subject name.

## Declaration

```swift
let kSecAttrSubject: CFString
```

## Discussion

Discussion The corresponding value is of type CFData and contains the X.500 subject name of a certificate. Items of class kSecClassCertificate have this attribute. Read only.
