Trait Signer
pub trait Signer {
type Signature: AsRef<[u8]>;
type Error: Into<Box<dyn Error + Send + Sync>>;
// Required methods
fn set_headers(
&self,
protected_headers: &mut Headers,
unprotected_headers: &mut Headers,
) -> Result<(), Self::Error>;
fn sign(&self, data: &str) -> Result<Self::Signature, Self::Error>;
}Available on crate features
aws-lc and crypto only.Expand description
Signer implements all methods which are needed to sign our JWS requests,
and add the needed info to our JOSE headers (JOSE headers = protected + unprotected headers)
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".