Function josekit::jwt::decode_with_decrypter[][src]

pub fn decode_with_decrypter(
    input: impl AsRef<[u8]>,
    decrypter: &dyn JweDecrypter
) -> Result<(JwtPayload, JweHeader), JoseError>
Expand description

Return the JWT object decoded by the selected decrypter.

Arguments

  • input - a JWT string representation.
  • decrypter - a decrypter of the decrypting algorithm.