Trait tough::key_source::KeySource [−][src]
pub trait KeySource: Debug + Send + Sync {
fn as_sign(
&self
) -> Result<Box<dyn Sign>, Box<dyn Error + Send + Sync + 'static>>;
fn write(
&self,
value: &str,
key_id_hex: &str
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>;
}
Expand description
This trait should be implemented for each source of signing keys. Examples of sources include: files, AWS SSM, etc.
Required methods
Returns an object that implements the Sign
trait