identity_jose::jose

Trait JoseHeader

Source
pub trait JoseHeader {
    // Required methods
    fn common(&self) -> &JwtHeader;
    fn has_claim(&self, claim: &str) -> bool;
}
Expand description

An abstraction over different JOSE headers.

Required Methods§

Source

fn common(&self) -> &JwtHeader

Returns the header common to all JoseHeaders.

Source

fn has_claim(&self, claim: &str) -> bool

Returns true if the header has the given claim, false otherwise.

Implementations on Foreign Types§

Source§

impl<'a, T> JoseHeader for &'a T
where T: JoseHeader + 'a,

Source§

fn common(&self) -> &JwtHeader

Source§

fn has_claim(&self, claim: &str) -> bool

Implementors§