Trait sop::ops::InlineSign

source ·
pub trait InlineSign<'s, S: SOP<'s>, Keys: Load<'s, S>> {
    // Required methods
    fn no_armor(self: Box<Self>) -> Box<dyn InlineSign<'s, S, Keys> + 's>;
    fn mode(
        self: Box<Self>,
        mode: InlineSignAs
    ) -> Box<dyn InlineSign<'s, S, Keys> + 's>;
    fn keys(
        self: Box<Self>,
        keys: &Keys
    ) -> Result<Box<dyn InlineSign<'s, S, Keys> + 's>>;
    fn with_key_password(
        self: Box<Self>,
        password: Password
    ) -> Result<Box<dyn InlineSign<'s, S, Keys> + 's>>;
    fn data<'d>(
        self: Box<Self>,
        data: &'d mut (dyn Read + Send + Sync)
    ) -> Result<Box<dyn Ready + 'd>>
       where 's: 'd;
}
Expand description

Builder for SOP::inline_sign.

Required Methods§

source

fn no_armor(self: Box<Self>) -> Box<dyn InlineSign<'s, S, Keys> + 's>

Disables armor encoding.

source

fn mode( self: Box<Self>, mode: InlineSignAs ) -> Box<dyn InlineSign<'s, S, Keys> + 's>

Sets signature mode.

source

fn keys( self: Box<Self>, keys: &Keys ) -> Result<Box<dyn InlineSign<'s, S, Keys> + 's>>

Adds the signer keys.

source

fn with_key_password( self: Box<Self>, password: Password ) -> Result<Box<dyn InlineSign<'s, S, Keys> + 's>>

Adds a password to unlock the signing keys with.

All supplied passwords will be used to try to unlock all signing keys.

source

fn data<'d>( self: Box<Self>, data: &'d mut (dyn Read + Send + Sync) ) -> Result<Box<dyn Ready + 'd>>where 's: 'd,

Signs data.

Implementors§