kSecUseItemList

Static kSecUseItemList 

Source
pub unsafe static kSecUseItemList: &'static CFString
👎Deprecated: Not implemented on this platform
Available on crate feature SecItem only.
Expand description

Predefined constants used to set values in a dictionary.

CFArray of items. If provided, this array is treated as the set of all possible items to search, or add if the API being called is SecItemAdd. The items in this array may be of type SecKeyRef, SecCertificateRef, SecIdentityRef, or CFDataRef (for a persistent item reference.) The items in the array must all be of the same type. When this attribute is provided, no keychains are searched.

keychain reference. You use this key to specify a value of type SecKeychainRef to which SecItemAdd will add the provided item(s).

is a CFStringRef that represents a user-visible string describing the operation for which the application is attempting to authenticate. The application is responsible for the text localization.

is a CFBooleanRef. If provided with a value of kCFBooleanTrue, the error errSecInteractionNotAllowed will be returned if the item is attempting to authenticate with UI. Note: on macOS, this attribute only applies to items stored in the Data Protection keychain. Legacy keychain items will still activate UI if needed.

is one of kSecUseAuthenticationUIAllow, kSecUseAuthenticationUIFail, kSecUseAuthenticationUISkip.

is LAContext to be used for keychain item authentication. If the item requires authentication and this key is omitted, a new context will be created just for the purpose of the single call. If the specified context has been previously authenticated, the operation will succeed without asking user for authentication. If the specified context has not been previously authenticated, the new authentication will be started on this context, allowing caller to eventually reuse the successfully authenticated context in subsequent keychain operations.

is a CFBooleanRef. Set to kCFBooleanTrue to use kSecAttrAccessGroup and/or kSecAttrAccessible on macOS without requiring the item to be marked synchronizable. Note that when kSecUseDataProtectionKeychain is set to true, returning references is supported only for Certificate, Key or Identity items.

indicating whether the item is shared with other personas on the system.

See also Apple’s documentation