[][src]Trait pgp::types::KeyTrait

pub trait KeyTrait: Debug {
    fn fingerprint(&self) -> Vec<u8>;
fn key_id(&self) -> KeyId;
fn algorithm(&self) -> PublicKeyAlgorithm; fn is_signing_key(&self) -> bool { ... } }

Required methods

fn fingerprint(&self) -> Vec<u8>

fn key_id(&self) -> KeyId

Returns the Key ID of the associated primary key.

fn algorithm(&self) -> PublicKeyAlgorithm

Loading content...

Provided methods

fn is_signing_key(&self) -> bool

Loading content...

Implementations on Foreign Types

impl<'a, T: KeyTrait> KeyTrait for &'a T[src]

fn key_id(&self) -> KeyId[src]

Returns the Key ID of the associated primary key.

Loading content...

Implementors

impl KeyTrait for PublicOrSecret[src]

fn fingerprint(&self) -> Vec<u8>[src]

Returns the fingerprint of the key.

fn key_id(&self) -> KeyId[src]

Returns the Key ID of the key.

impl KeyTrait for pgp::composed::key::PublicKey[src]

impl KeyTrait for pgp::composed::key::PublicSubkey[src]

impl KeyTrait for pgp::composed::key::SecretKey[src]

impl KeyTrait for pgp::composed::key::SecretSubkey[src]

impl KeyTrait for SignedPublicKey[src]

impl KeyTrait for SignedPublicSubKey[src]

fn fingerprint(&self) -> Vec<u8>[src]

Returns the fingerprint of the key.

fn key_id(&self) -> KeyId[src]

Returns the Key ID of the key.

impl KeyTrait for SignedSecretKey[src]

fn fingerprint(&self) -> Vec<u8>[src]

Returns the fingerprint of the associated primary key.

fn key_id(&self) -> KeyId[src]

Returns the Key ID of the associated primary key.

impl KeyTrait for SignedSecretSubKey[src]

fn fingerprint(&self) -> Vec<u8>[src]

Returns the fingerprint of the key.

fn key_id(&self) -> KeyId[src]

Returns the Key ID of the key.

impl KeyTrait for pgp::packet::PublicKey[src]

fn fingerprint(&self) -> Vec<u8>[src]

Returns the fingerprint of this key.

impl KeyTrait for pgp::packet::PublicSubkey[src]

fn fingerprint(&self) -> Vec<u8>[src]

Returns the fingerprint of this key.

impl KeyTrait for pgp::packet::SecretKey[src]

fn fingerprint(&self) -> Vec<u8>[src]

Returns the fingerprint of this key.

impl KeyTrait for pgp::packet::SecretSubkey[src]

fn fingerprint(&self) -> Vec<u8>[src]

Returns the fingerprint of this key.

Loading content...