---
title: kSecAttrIsNegative
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecattrisnegative
---

# kSecAttrIsNegative

A key with a value that’s a Boolean indicating whether the item has a valid password.

## Declaration

```swift
let kSecAttrIsNegative: CFString
```

## Discussion

Discussion The corresponding value is of type CFBoolean and indicates whether there is a valid password associated with this keychain item. This is useful if your application doesn’t want a password for some particular service to be stored in the keychain, but prefers that it always be entered by the user.
