pub fn header(&self) -> Result<&Header<H>, Error> {
        match *self {
            Compact::Decrypted { ref header, .. } => Ok(header),
            Compact::Encrypted(_) => Err(Error::UnsupportedOperation),
        }
    }
/// Convenience method to get a reference to the header from an Decrypted JWE
Convenience method to get a reference to the header from an Decrypted JWE
Convenience method to get a reference to the header from an Decrypted JWE
pub fn header(&self) -> Result<&Header<H>, Error> {
        match *self {
            Compact::Decrypted { ref header, .. } => Ok(header),
            Compact::Encrypted(_) => Err(Error::UnsupportedOperation),
        }
    }
pub fn header ( & self ) -> Result < & Header < H > , Error > { match * self { Compact :: Decrypted { ref header , .. } => Ok ( header ) , Compact :: Encrypted ( _ ) => Err ( Error :: UnsupportedOperation ) , } }
Convenience method to get a reference to the header from an Decrypted JWE
Convenience method to get a reference to the header from an Decrypted JWE
&self
&self