|
27 | 27 |
|
28 | 28 | typedef NS_ENUM(NSUInteger, VALAccessControl) {
|
29 | 29 | /// Access to keychain elements requires user presence verification via Touch ID or device Passcode. Keychain elements are still accessible by Touch ID even if fingers are added or removed. Touch ID does not have to be available or enrolled.
|
30 |
| - /// @version Available on iOS 8 or later, and Mac OS 10.11 or later. |
| 30 | + /// @version Available on iOS 8 or later, and macOS 10.11 or later. |
31 | 31 | VALAccessControlUserPresence = 1,
|
32 | 32 |
|
33 | 33 | /// Access to keychain elements requires user presence verification via any finger enrolled in Touch ID. Keychain elements are still accessible by Touch ID even if fingers are added or removed. Touch ID must be available and at least one finger must be enrolled.
|
34 |
| - /// @version Available on iOS 9 or later. |
| 34 | + /// @version Available on iOS 9 or later, and macOS 10.12 or later. |
35 | 35 | VALAccessControlTouchIDAnyFingerprint = 2,
|
36 | 36 |
|
37 | 37 | /// Access to keychain elements requires user presence verification via fingers currently enrolled in Touch ID. Previously written keychain elements become inaccessible when fingers are added or removed. Touch ID must be available and at least one finger must be enrolled.
|
38 |
| - /// @version Available on iOS 9 or later. |
| 38 | + /// @version Available on iOS 9 or later, and macOS 10.12 or later. |
39 | 39 | VALAccessControlTouchIDCurrentFingerprintSet = 3,
|
40 | 40 |
|
41 | 41 | /// Access to keychain elements requires user presence verification via device Passcode.
|
42 |
| - /// @version Available on iOS 9 or later, and Mac OS 10.11 or later. |
| 42 | + /// @version Available on iOS 9 or later, and macOS 10.11 or later. |
43 | 43 | VALAccessControlDevicePasscode = 4,
|
44 | 44 | };
|
45 | 45 |
|
46 | 46 |
|
47 |
| -/// Reads and writes keychain elements that are stored on the Secure Enclave (available on iOS 8.0 and later and Mac OS 10.11 and later) using accessibility attribute VALAccessibilityWhenPasscodeSetThisDeviceOnly. Accessing or modifying these keychain elements will require the user to confirm their presence via Touch ID or passcode entry. If no passcode is set on the device, the below methods will fail. Data is removed from the Secure Enclave when the user removes a passcode from the device. Use the userPrompt methods to display custom text to the user in Apple's Touch ID and passcode entry UI. |
48 |
| -/// @version Available on iOS 8 or later, and Mac OS 10.11 or later. |
| 47 | +/// Reads and writes keychain elements that are stored on the Secure Enclave (available on iOS 8.0 and later and macOS 10.11 and later) using accessibility attribute VALAccessibilityWhenPasscodeSetThisDeviceOnly. Accessing or modifying these keychain elements will require the user to confirm their presence via Touch ID or passcode entry. If no passcode is set on the device, the below methods will fail. Data is removed from the Secure Enclave when the user removes a passcode from the device. Use the userPrompt methods to display custom text to the user in Apple's Touch ID and passcode entry UI. |
| 48 | +/// @version Available on iOS 8 or later, and macOS 10.11 or later. |
49 | 49 | @interface VALSecureEnclaveValet : VALValet
|
50 | 50 |
|
51 | 51 | /// @return YES if Secure Enclave storage is supported on the current iOS version (8.0 and later).
|
|
0 commit comments