Trait josekit::jws::JwsSigner [−][src]
pub trait JwsSigner: Debug + Send + Sync {
fn algorithm(&self) -> &dyn JwsAlgorithm;
fn key_id(&self) -> Option<&str>;
fn signature_len(&self) -> usize;
fn sign(&self, message: &[u8]) -> Result<Vec<u8>, JoseError>;
fn box_clone(&self) -> Box<dyn JwsSigner>;
}
Required methods
fn algorithm(&self) -> &dyn JwsAlgorithm
fn algorithm(&self) -> &dyn JwsAlgorithm
Return the source algorithm instance.
Return the source key ID. The default value is a value of kid parameter in JWK.
fn signature_len(&self) -> usize
fn signature_len(&self) -> usize
Return the signature length of JWS.