Browse Source

Remove deprecated access options

Evgenii Neumerzhitckii 6 năm trước cách đây
mục cha
commit
f5079c5c75
1 tập tin đã thay đổi với 1 bổ sung25 xóa
  1. 1 25
      Distrib/KeychainSwiftDistrib.swift

+ 1 - 25
Distrib/KeychainSwiftDistrib.swift

@@ -429,16 +429,7 @@ public enum KeychainSwiftAccessOptions {
   
   */
   case accessibleAfterFirstUnlockThisDeviceOnly
-  
-  /**
-  
-  The data in the keychain item can always be accessed regardless of whether the device is locked.
-  
-  This is not recommended for application use. Items with this attribute migrate to a new device when using encrypted backups.
-  
-  */
-  case accessibleAlways
-  
+
   /**
   
   The data in the keychain can only be accessed when the device is unlocked. Only available if a passcode is set on the device.
@@ -448,15 +439,6 @@ public enum KeychainSwiftAccessOptions {
   */
   case accessibleWhenPasscodeSetThisDeviceOnly
   
-  /**
-  
-  The data in the keychain item can always be accessed regardless of whether the device is locked.
-  
-  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.
-  
-  */
-  case accessibleAlwaysThisDeviceOnly
-  
   static var defaultOption: KeychainSwiftAccessOptions {
     return .accessibleWhenUnlocked
   }
@@ -475,14 +457,8 @@ public enum KeychainSwiftAccessOptions {
     case .accessibleAfterFirstUnlockThisDeviceOnly:
       return toString(kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly)
       
-    case .accessibleAlways:
-      return toString(kSecAttrAccessibleAlways)
-      
     case .accessibleWhenPasscodeSetThisDeviceOnly:
       return toString(kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly)
-      
-    case .accessibleAlwaysThisDeviceOnly:
-      return toString(kSecAttrAccessibleAlwaysThisDeviceOnly)
     }
   }