- query
- The query used to lookup the value on the keychain.
- max
- Maximum number of values to return.
An array of NSData records associated with the given query.
The returned NSData is a binary blob, if you want to get a high-level representation, use SecKeyChain.QueryAsRecord instead.
The returned NSData is not suitable for storing on disk or passing to another process. If you want that, you should use the overload that takes the bool wantPersistentReference parameter and set that to true.
This is the strongly typed equivalent of calling the Security's framework SecItemCopyMatching method with the kSecReturnData set to true and kSecMatchLimit set to the value of max, forcing that many record to be returned.