Skip to main content

KeychainAccessibility

KeyChain accessibility attributes for iOS/macOS platforms.

These attributes determine when the app can access secure values stored in the Keychain.

Inherits: enum.Enum

Properties

  • FIRST_UNLOCK - The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user.
  • FIRST_UNLOCK_THIS_DEVICE - The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user.
  • PASSCODE - The data in the keychain can only be accessed when the device is unlocked.
  • UNLOCKED - The data in the keychain item can be accessed only while the device is unlocked by the user.
  • UNLOCKED_THIS_DEVICE - The data in the keychain item can be accessed only while the device is unlocked by the user.

Properties

FIRST_UNLOCKclass-attributeinstance-attribute

The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user.

Enables access to secure values after the device is unlocked for the first time after a reboot.

FIRST_UNLOCK_THIS_DEVICEclass-attributeinstance-attribute

The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user.

Items with this attribute do not migrate to a new device.

Allows access to secure values only after the device is unlocked for the first time since installation on this device.

PASSCODEclass-attributeinstance-attribute

The data in the keychain can only be accessed when the device is unlocked.

Only available if a passcode is set on the device. Items with this attribute do not migrate to a new device.

UNLOCKEDclass-attributeinstance-attribute

The data in the keychain item can be accessed only while the device is unlocked by the user.

UNLOCKED_THIS_DEVICEclass-attributeinstance-attribute

The data in the keychain item can be accessed only while the device is unlocked by the user.

Items with this attribute do not migrate to a new device.