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