---
title: kSecAttrService
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecattrservice
---

# kSecAttrService

A key whose value is a string indicating the item’s service.

## Declaration

```swift
let kSecAttrService: CFString
```

## Discussion

Discussion The corresponding value is a string of type CFString that represents the service associated with this item. Items of class kSecClassGenericPassword have this attribute.
