Trait mas_oidc_client::jose::constraints::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§