共享keychain数据
2014-05-08 17:25
267 查看
【共享keychain数据】
当往keychain中插入数据时,默认的 kSecAttrAccessGroup 就是App自身的BundleID。
【官方文档】
You can add a keychain-access-groups entitlement to the application and, in the entitlement property list file, specify an array of keychain access groups to which the application belongs.
可以在entitlements文件中指定keychain-access-groups属性。此属性下定义了一组字符串标识。
If you add such a property-list file to the application bundle, then the access group corresponding to the application-identifier entitlement is treated as the last element in the access groups array.
如果添加了keychain-access-group选项,那原有的app BundleID会被加入到最后一项。
If you do not include the kSecAttrAccessGroup key in the attributes dictionary when you call the SecItemAdd function to add an item to the keychain, the function uses the first access group in the array by default.
如果没有指定kSecAttrAccessGroup键,SecItemAdd函数默认使用第一个group值。
If there is no kSecAttrAccessGroup key in the attributes dictionary and there is no keychain-access-groups entitlement in the application bundle, then the access group of a newly created item is the value of the application-identifier entitlement.
如果没有指定kSecAttrAccessGroup键,也没有设置keychain-acess-group选项,则使用App BundleID作为[b]kSecAttrAccessGroup的值。[/b]
【其它要求】
When you want to create an app that can share keychain access with an existing app you need to make sure that you use the bundle seed ID of the existing app. You do this when you create the new App ID in the iPhone Provisioning Portal. Instead of generating a new value you select the existing value from the list of all your previous bundle seed IDs.
若要共享keychain数据,两个App的bundle seed id必须相同。
The keychain access group can be named pretty much anything you want as long as it starts with the bundle seed ID.
keychain-acess-group必须以同样的bundle seed id开头。
参考:http://useyourloaf.com/blog/2010/04/03/keychain-group-access.html
当往keychain中插入数据时,默认的 kSecAttrAccessGroup 就是App自身的BundleID。
【官方文档】
You can add a keychain-access-groups entitlement to the application and, in the entitlement property list file, specify an array of keychain access groups to which the application belongs.
可以在entitlements文件中指定keychain-access-groups属性。此属性下定义了一组字符串标识。
If you add such a property-list file to the application bundle, then the access group corresponding to the application-identifier entitlement is treated as the last element in the access groups array.
如果添加了keychain-access-group选项,那原有的app BundleID会被加入到最后一项。
If you do not include the kSecAttrAccessGroup key in the attributes dictionary when you call the SecItemAdd function to add an item to the keychain, the function uses the first access group in the array by default.
如果没有指定kSecAttrAccessGroup键,SecItemAdd函数默认使用第一个group值。
If there is no kSecAttrAccessGroup key in the attributes dictionary and there is no keychain-access-groups entitlement in the application bundle, then the access group of a newly created item is the value of the application-identifier entitlement.
如果没有指定kSecAttrAccessGroup键,也没有设置keychain-acess-group选项,则使用App BundleID作为[b]kSecAttrAccessGroup的值。[/b]
【其它要求】
When you want to create an app that can share keychain access with an existing app you need to make sure that you use the bundle seed ID of the existing app. You do this when you create the new App ID in the iPhone Provisioning Portal. Instead of generating a new value you select the existing value from the list of all your previous bundle seed IDs.
若要共享keychain数据,两个App的bundle seed id必须相同。
The keychain access group can be named pretty much anything you want as long as it starts with the bundle seed ID.
keychain-acess-group必须以同样的bundle seed id开头。
参考:http://useyourloaf.com/blog/2010/04/03/keychain-group-access.html
相关文章推荐
- iOS开发 -- KeyChain使用与共享数据
- 利用KeyChain共享数据(唯一标示)
- 使用FXKeychain进行 App间共享数据时需要注意的。
- 75.iOS使用KeyChain存储数据与不同App间共享数据
- 在应用间利用KeyChain共享数据
- 不同应用共享数据——keychain的使用
- iOS Keychain钥匙串,应用间数据共享打造iOS上的全家桶
- keychain 多应用共享数据
- iOS Keychain钥匙串,应用间数据共享打造iOS上的全家桶
- iOS 中使用 Keychain Services 在应用间共享数据
- 在应用间利用KeyChain共享数据
- 在应用间利用KeyChain共享数据
- 在应用间利用KeyChain共享数据
- 在应用间利用KeyChain共享数据
- WatchKit 之 数据共享
- 在Android 应用程序之间数据共享—-ContentResolver
- synchronized解决多线程共享数据同步问题
- 共享存储容灾数据保护 RAID
- 多个线程访问共享数据