kSecClassGenericPassword
The value that indicates a generic password item.
Declaration
let kSecClassGenericPassword: CFStringMentioned in
Discussion
The following keychain item attributes form the composite primary key of a generic password item:
kSecAttrAccessGroup (on macOS, this key only applies if you set kSecUseDataProtectionKeychain or kSecAttrSynchronizable to true)
Calls to SecItemAdd(_:_:) that add a generic password item with the same values for all of these attributes as an existing item result in errSecDuplicateItem.
The following keychain item attributes apply to a generic password item, and don’t form part of its composite primary key:
kSecAttrAccess (macOS only)
kSecAttrAccessible (on macOS, this key only applies if you set kSecUseDataProtectionKeychain or kSecAttrSynchronizable to true)