pub struct ItemSearchOptions { /* private fields */ }
Expand description

A builder type to search for items in keychains.

Implementations§

Creates a new builder with default options.

Search only for items of the specified class.

Search only for keys of the specified class. Also sets self.class to ItemClass::key().

Load Security Framework objects (SecCertificate, SecKey, etc) for the results.

Load Security Framework object attributes for the results.

Load Security Framework objects data for the results.

Limit the number of search results.

If this is not called, the default limit is 1.

Search for an item with the given label.

Sets kSecAttrAccessGroup to kSecAttrAccessGroupToken

Search for a certificate with the given public key hash.

This is only compatible with ItemClass::certificate, to search for a key by public key hash use ItemSearchOptions::application_label instead.

Search for a key with the given public key hash.

This is only compatible with ItemClass::key, to search for a certificate by the public key hash use ItemSearchOptions::pub_key_hash instead.

Search for objects.

Trait Implementations§

Returns the “default value” for a type. Read more
Search within the specified keychains. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.