KeychainAccessibilityOption

public enum KeychainAccessibilityOption : CaseIterable

KeychainAccessibilityOption.

  • The data in the keychain item can always be accessed regardless of whether the device is locked.

    Declaration

    Swift

    case always
  • The data in the keychain can only be accessed when the device is unlocked. Only available if a passcode is set on the device.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    case afterFirstUnlockThisDeviceOnly
  • The data in the keychain can only be accessed when the device is unlocked. Only available if a passcode is set on the device.

    Declaration

    Swift

    case whenPasscodeSetThisDeviceOnly