pub trait JwsSigner:
Debug
+ Send
+ Sync {
// Required methods
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§
Sourcefn algorithm(&self) -> &dyn JwsAlgorithm
fn algorithm(&self) -> &dyn JwsAlgorithm
Return the source algorithm instance.
Sourcefn key_id(&self) -> Option<&str>
fn key_id(&self) -> Option<&str>
Return the source key ID. The default value is a value of kid parameter in JWK.
Sourcefn signature_len(&self) -> usize
fn signature_len(&self) -> usize
Return the signature length of JWS.
fn box_clone(&self) -> Box<dyn JwsSigner>
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".