Function josekit::jwe::deserialize_json_with_selector [−][src]
pub fn deserialize_json_with_selector<'a, F>(
input: &str,
selector: F
) -> Result<(Vec<u8>, JweHeader), JoseError> where
F: Fn(&JweHeader) -> Result<Option<&'a dyn JweDecrypter>, JoseError>,
Expand description
Deserialize the input that is formatted by flattened json serialization.
Arguments
input
- The input data.selector
- a function for selecting the decrypting algorithm.