sop::ops

Trait RevokeKey

Source
pub trait RevokeKey<'s, S: SOP<'s>, Certs: Save, Keys: Load<'s, S>> {
    // Required methods
    fn with_key_password(
        self: Box<Self>,
        password: Password,
    ) -> Result<Box<dyn RevokeKey<'s, S, Certs, Keys> + 's>>;
    fn keys(self: Box<Self>, keys: &Keys) -> Result<Certs>;
}
Expand description

Builder for SOP::revoke_key.

Required Methods§

Source

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

Supplies a password to unlock the keys with.

All passwords are tried. If unlocking a key fails, the whole operation fails with Error::KeyIsProtected.

Source

fn keys(self: Box<Self>, keys: &Keys) -> Result<Certs>

Revokes keys.

Implementors§