Function josekit::jwe::serialize_compact_with_selector
source · pub fn serialize_compact_with_selector<'a, F>(
payload: &[u8],
header: &JweHeader,
selector: F
) -> Result<String, JoseError>
Expand description
Return a representation of the data that is formatted by compact serialization.
§Arguments
payload
- The payload data.header
- The JWS heaser claims.selector
- a function for selecting the signing algorithm.