Function josekit::jwe::serialize_flattened_json [−][src]
pub fn serialize_flattened_json(
payload: &[u8],
header: Option<&JweHeaderSet>,
recipient_header: Option<&JweHeader>,
aad: Option<&[u8]>,
encrypter: &dyn JweEncrypter
) -> Result<String, JoseError>
Expand description
Return a representation of the data that is formatted by flattened json serialization.
Arguments
header
- The JWE shared protected and unprotected header claims.recipient_header
- The JWE unprotected header claims.aad
- The JWE additional authenticated data.payload
- The payload data.encrypter
- The JWS encrypter.