---
title: NSPersistentStoreFileProtectionKey
framework: coredata
role: symbol
role_heading: Global Variable
path: coredata/nspersistentstorefileprotectionkey
---

# NSPersistentStoreFileProtectionKey

Key to represent the protection class for the persistent store.

## Declaration

```swift
let NSPersistentStoreFileProtectionKey: String
```

## Discussion

Discussion Backward compatibility may preclude some features. The acceptable values are those defined for the protectionKey. The default value is completeUntilFirstUserAuthentication for all applications built on or after iOS v5.0. The default value for all older applications is none.

## See Also

### Constants

- [NSReadOnlyPersistentStoreOption](coredata/nsreadonlypersistentstoreoption.md)
- [NSValidateXMLStoreOption](coredata/nsvalidatexmlstoreoption.md)
- [NSPersistentStoreTimeoutOption](coredata/nspersistentstoretimeoutoption.md)
- [NSSQLitePragmasOption](coredata/nssqlitepragmasoption.md)
- [NSSQLiteAnalyzeOption](coredata/nssqliteanalyzeoption.md)
- [NSSQLiteManualVacuumOption](coredata/nssqlitemanualvacuumoption.md)
- [NSPersistentStoreForceDestroyOption](coredata/nspersistentstoreforcedestroyoption.md)
