Global Variable

kSecUseAuthenticationContext

A key whose value indicates a local authentication context to use.

Declaration

let kSecUseAuthenticationContext: CFString

Discussion

The corresponding value is of type LAContext, and represents a reusable local authentication context that should be used for keychain item authentication, according to the following rules:

  • If this key is not specified, and if the item requires authentication, a new context will be created, used once, and discarded.

  • If this key is specified with a context that has been previously authenticated, the operation will succeed without asking user for authentication.

  • If this key is specified with a context that has not been previously authenticated, the system attempts authentication on the context. If successful, the context may be reused in subsequent keychain operations.

See Also

Additional Item Search Keys

let kSecUseItemList: CFString

A key whose value is an array of items to search.

let kSecUseKeychain: CFString

A key whose value is a keychain to operate on.

let kSecUseOperationPrompt: CFString

A key whose value is an operation prompt.

let kSecUseNoAuthenticationUI: CFString

A key whose value is a Boolean indicating whether to disallow UI authentication.

Deprecated
let kSecUseAuthenticationUI: CFString

A key whose value indicates whether the user may be prompted for authentication.

let kSecUseDataProtectionKeychain: CFString

A key whose value indicates whether to treat macOS keychain items like iOS keychain items.