Function josekit::jws::serialize_flattened_json_with_selector [−][src]
pub fn serialize_flattened_json_with_selector<'a, F>(
payload: &[u8],
header: &JwsHeaderSet,
selector: F
) -> Result<String, JoseError> where
F: Fn(&JwsHeader) -> Option<&'a dyn JwsSigner>,
Expand description
Return a representation of the data that is formatted by flatted json serialization.
Arguments
payload
- The payload data.header
- The JWS protected and unprotected header claims.selector
- a function for selecting the signing algorithm.