Trait mas_oidc_client::jose::constraints::Constrainable

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§

fn kty(&self) -> JsonWebKeyType

Key type (kty) of this key

Provided Methods§

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

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

List of available algorithms for this key

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

Key ID (kid) of this key

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

Usage specified for this key

Implementors§

§

impl<P> Constrainable for JsonWebKey<P>
where P: ParametersInfo,