Is it possible to update a Keychain item's kSecAttrAccessible value?

前端 未结 2 957
独厮守ぢ
独厮守ぢ 2020-12-29 04:25

Is it possible to update the value of the attribute kSecAttrAccessible of existing items in the Keychain? It seems that it cannot be changed after the item was

2条回答
  •  盖世英雄少女心
    2020-12-29 04:37

    I was unable to get the other answer to work. I ended up testing kSecAttrAccessibile and if it wasn't what I wanted I recorded the value and attributes in the keychain in local variables, reset the keychain, set kSecAttrAccessible as desired and then set the value and attributes in the keychain to their original settings.

提交回复
热议问题