pub trait GenerateKey<'a> {
    fn no_armor(self: Box<Self>) -> Box<dyn GenerateKey<'a> + 'a>;
    fn with_key_password(
        self: Box<Self>,
        password: Password
    ) -> Result<Box<dyn GenerateKey<'a> + 'a>>; fn userid(self: Box<Self>, userid: &str) -> Box<dyn GenerateKey<'a> + 'a>; fn generate(self: Box<Self>) -> Result<Box<dyn Ready + 'a>>; }
Expand description

Builder for SOP::generate_key.

Required Methods

Disables armor encoding.

Protects the newly generated key with the given password.

Adds a User ID.

Generates the OpenPGP key.

Implementors