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

Return the source algorithm instance.

Return the source key ID. The default value is a value of kid parameter in JWK.

Return the signature length of JWS.

Return a signature of the data.

Arguments
  • message - The message data to sign.

Implementors