[][src]Trait sequoia_openpgp::cert::Preferences

pub trait Preferences<'a>: Amalgamation<'a> {
    fn preferred_symmetric_algorithms(&self) -> Option<&'a [SymmetricAlgorithm]> { ... }
fn preferred_hash_algorithms(&self) -> Option<&'a [HashAlgorithm]> { ... }
fn preferred_compression_algorithms(
        &self
    ) -> Option<&'a [CompressionAlgorithm]> { ... }
fn preferred_aead_algorithms(&self) -> Option<&'a [AEADAlgorithm]> { ... }
fn key_server_preferences(&self) -> Option<KeyServerPreferences> { ... }
fn preferred_key_server(&self) -> Option<&'a [u8]> { ... }
fn features(&self) -> Option<Features> { ... } }

Queries certificate holder's preferences.

A certificate's key holder controls the primary key. Subpackets on self signatures can be used to express preferences for algorithms and key management. Furthermore, the key holder's OpenPGP implementation can express its feature set.

Provided methods

fn preferred_symmetric_algorithms(&self) -> Option<&'a [SymmetricAlgorithm]>

Returns symmetric algorithms that the key holder prefers.

The algorithms are ordered according by the key holder's preference.

fn preferred_hash_algorithms(&self) -> Option<&'a [HashAlgorithm]>

Returns hash algorithms that the key holder prefers.

The algorithms are ordered according by the key holder's preference.

fn preferred_compression_algorithms(&self) -> Option<&'a [CompressionAlgorithm]>

Returns compression algorithms that the key holder prefers.

The algorithms are ordered according by the key holder's preference.

fn preferred_aead_algorithms(&self) -> Option<&'a [AEADAlgorithm]>

Returns AEAD algorithms that the key holder prefers.

The algorithms are ordered according by the key holder's preference.

fn key_server_preferences(&self) -> Option<KeyServerPreferences>

Returns the key holder's keyserver preferences.

fn preferred_key_server(&self) -> Option<&'a [u8]>

Returns the key holder's preferred keyserver for updates.

fn features(&self) -> Option<Features>

Returns the key holder's feature set.

Loading content...

Implementors

impl<'a, C> Preferences<'a> for ValidComponentAmalgamation<'a, C>[src]

impl<'a, P: KeyParts> Preferences<'a> for ValidPrimaryKeyAmalgamation<'a, P>[src]

Loading content...