Edytuj

Udostępnij za pośrednictwem


SecAccessible Enum

Definition

An enumeration whose values specify when a keychain item should be readable.

public enum SecAccessible
type SecAccessible = 
Inheritance
SecAccessible

Fields

AfterFirstUnlock 1

The data is only available after the first time the device has been unlocked after booting.

AfterFirstUnlockThisDeviceOnly 4

The data is only available after the first time the device has been unlocked after booting.

Always 2

Always available.

AlwaysThisDeviceOnly 5

Always available.

Invalid -1

Invalid value.

WhenPasscodeSetThisDeviceOnly 6

Limits access to the item to both this device and requires a passcode to be set and the data is only available if the device is currently unlocked.

WhenUnlocked 0

The data is only available when the device is unlocked.

WhenUnlockedThisDeviceOnly 3

Limits access to the item to this device and the device being unlocked.

Remarks

There are a number of axis to consider for the accessible settings of an item.

Whether the information should be made accessible without entering a passcode, the device being unlocked or always available.

Another one is whether the information should be locked to this device, or whether the information can migrate to a new device via a backup restore.

This value is used by the SecAccessControl constructor and surfaced as a property of the SecRecord.

Applies to