Trait JsonWebKeyUse

Source
pub trait JsonWebKeyUse:
    Debug
    + DeserializeOwned
    + Serialize
    + 'static {
    // Required methods
    fn allows_signature(&self) -> bool;
    fn allows_encryption(&self) -> bool;
}
Expand description

Allowed key usage.

Required Methods§

Source

fn allows_signature(&self) -> bool

Returns true if the associated key may be used for digital signatures, or false otherwise.

Source

fn allows_encryption(&self) -> bool

Returns true if the associated key may be used for encryption, or false otherwise.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§