PrivateKeyBuilder

Trait PrivateKeyBuilder 

Source
pub trait PrivateKeyBuilder: PrivateKey {
    type Error: Send;

    // Required methods
    fn build(key_id: String, private_key_pem: &str) -> Result<Self, Self::Error>
       where Self: Sized;
    fn private_key_pem(&self) -> Result<String, Self::Error>;
}
Expand description

Describes building private keys

Required Associated Types§

Source

type Error: Send

Errors possible when constructing private keys

Required Methods§

Source

fn build(key_id: String, private_key_pem: &str) -> Result<Self, Self::Error>
where Self: Sized,

Build private key from pem pkcs8

Source

fn private_key_pem(&self) -> Result<String, Self::Error>

Retrieve the pem pkcs8 encoded private key from this builder

Implementors§