Enum security_framework::item::Location
source · pub enum Location {
DataProtectionKeychain,
DefaultFileKeychain,
FileKeychain(SecKeychain),
}
Expand description
Which keychain to add an item to.
https://developer.apple.com/documentation/technotes/tn3137-on-mac-keychains
Variants§
DataProtectionKeychain
Store the item in the newer DataProtectionKeychain. This is the only keychain on iOS. On macOS, this is the newer and more consistent keychain implementation. Keys stored in the Secure Enclave must use this keychain.
This keychain requires the calling binary to be codesigned with entitlements for the KeychainAccessGroups it is supposed to access.
DefaultFileKeychain
Store the key in the default file-based keychain. On macOS, defaults to the Login keychain.
FileKeychain(SecKeychain)
Store the key in a specific file-based keychain.
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more