You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user.
37
-
37
+
38
38
After the first unlock, the data remains accessible until the next restart. This is recommended for items that need to be accessed by background applications. Items with this attribute migrate to a new device when using encrypted backups.
39
39
*/
40
40
@available(iOS 4,*)
41
41
case afterFirstUnlock
42
42
43
43
/**
44
44
The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user.
45
-
45
+
46
46
After the first unlock, the data remains accessible until the next restart. This is recommended for items that need to be accessed by background applications. Items with this attribute do not migrate to a new device. Thus, after restoring from a backup of a different device, these items will not be present.
47
47
*/
48
48
@available(iOS 4,*)
49
49
case afterFirstUnlockThisDeviceOnly
50
50
51
51
/**
52
52
The data in the keychain item can always be accessed regardless of whether the device is locked.
53
-
53
+
54
54
This is not recommended for application use. Items with this attribute migrate to a new device when using encrypted backups.
55
55
*/
56
56
@available(iOS 4,*)
57
57
case always
58
58
59
59
/**
60
60
The data in the keychain can only be accessed when the device is unlocked. Only available if a passcode is set on the device.
61
-
61
+
62
62
This is recommended for items that only need to be accessible while the application is in the foreground. Items with this attribute never migrate to a new device. After a backup is restored to a new device, these items are missing. No items can be stored in this class on devices without a passcode. Disabling the device passcode causes all items in this class to be deleted.
63
63
*/
64
64
@available(iOS 8,*)
65
65
case whenPasscodeSetThisDeviceOnly
66
66
67
67
/**
68
68
The data in the keychain item can always be accessed regardless of whether the device is locked.
69
-
69
+
70
70
This is not recommended for application use. Items with this attribute do not migrate to a new device. Thus, after restoring from a backup of a different device, these items will not be present.
71
71
*/
72
72
@available(iOS 4,*)
73
73
case alwaysThisDeviceOnly
74
74
75
75
/**
76
76
The data in the keychain item can be accessed only while the device is unlocked by the user.
77
-
77
+
78
78
This is recommended for items that need to be accessible only while the application is in the foreground. Items with this attribute migrate to a new device when using encrypted backups.
79
-
79
+
80
80
This is the default value for keychain items added without explicitly setting an accessibility constant.
81
81
*/
82
82
@available(iOS 4,*)
83
83
case whenUnlocked
84
84
85
85
/**
86
86
The data in the keychain item can be accessed only while the device is unlocked by the user.
87
-
87
+
88
88
This is recommended for items that need to be accessible only while the application is in the foreground. Items with this attribute do not migrate to a new device. Thus, after restoring from a backup of a different device, these items will not be present.
0 commit comments