[][src]Trait age::Recipient

pub trait Recipient {
    pub fn wrap_file_key(
        &self,
        file_key: &FileKey
    ) -> Result<Vec<Stanza>, EncryptError>; }

A public key or other value that can wrap an opaque file key to a recipient stanza.

Implementations of this trait might represent more than one recipient.

Required methods

pub fn wrap_file_key(
    &self,
    file_key: &FileKey
) -> Result<Vec<Stanza>, EncryptError>
[src]

Wraps the given file key, returning stanzas to be placed in an age file header.

Implementations MUST NOT return more than one stanza per "actual recipient".

This method is part of the Recipient trait to expose age's one joint for external implementations. You should not need to call this directly; instead, pass recipients to Encryptor::with_recipients.

Loading content...

Implementors

impl Recipient for Recipient[src]

Loading content...