mas_jose::constraints

Trait Constrainable

Source
pub trait Constrainable {
    // Required method
    fn kty(&self) -> JsonWebKeyType;

    // Provided methods
    fn alg(&self) -> Option<&JsonWebSignatureAlg> { ... }
    fn algs(&self) -> &[JsonWebSignatureAlg] { ... }
    fn kid(&self) -> Option<&str> { ... }
    fn use_(&self) -> Option<&JsonWebKeyUse> { ... }
}

Required Methods§

Source

fn kty(&self) -> JsonWebKeyType

Key type (kty) of this key

Provided Methods§

Source

fn alg(&self) -> Option<&JsonWebSignatureAlg>

Source

fn algs(&self) -> &[JsonWebSignatureAlg]

List of available algorithms for this key

Source

fn kid(&self) -> Option<&str>

Key ID (kid) of this key

Source

fn use_(&self) -> Option<&JsonWebKeyUse>

Usage specified for this key

Implementors§