[][src]Struct keychain_services::keychain::item::Query

pub struct Query(_);

Query builder for locating particular keychain items.

For more information, see "Search Attribute Keys and Values": https://developer.apple.com/documentation/security/keychain_services/keychain_items/search_attribute_keys_and_values

Methods

impl Query
[src]

Create a new keychain item query builder

Query for keychain items with the provided SecAttrApplicationLabel (not to be confused with a SecAttrLabel), i.e. the hash/fingerprint of a public key in the keychain.

Both the private and public key in a keypair have a SecAttrApplicationLabel set to the public key's fingerprint.

Wrapper for the kSecAttrApplicationLabel attribute key. See: https://developer.apple.com/documentation/security/ksecattrlabel

Query for keychain items with the provided SecAttrApplicationTag.

Wrapper for the kSecAttrApplicationTag attribute key. See: https://developer.apple.com/documentation/security/ksecattrapplicationtag

Query for keys with the given SecAttrKeyClass.

Wrapper for the kSecAttrKeyClass attribute key. See: https://developer.apple.com/documentation/security/ksecattrkeyclass

Query for keys with the given SecAttrKeyType.

Wrapper for the kSecAttrKeyType attribute key. See: https://developer.apple.com/documentation/security/ksecattrkeytype

Query for a particular (human-meaningful) label on keys

Wrapper for the kSecAttrLabel attribute key. See: https://developer.apple.com/documentation/security/ksecattrlabel

Query for keys which are or not permanent members of the default keychain.

Wrapper for the kSecAttrIsPermanent attribute key. See: https://developer.apple.com/documentation/security/ksecattrispermanent

Query for keys which are or are not synchronizable.

Wrapper for the kSecAttrSynchronizable attribute key. See: https://developer.apple.com/documentation/security/ksecattrsynchronizable

Query for keys stored in an external token i.e. the Secure Enclave Processor (SEP).

Wrapper for the kSecAttrTokenID attribute key. See: https://developer.apple.com/documentation/security/ksecattrtokenid

Prompt the user with the given custom message when using keys returned from this query.

Wrapper for the kSecUseOperationPrompt. See: https://developer.apple.com/documentation/security/ksecuseoperationprompt

Trait Implementations

impl Default for Query
[src]

Returns the "default value" for a type. Read more

impl Debug for Query
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Query

impl !Sync for Query

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more