Function josekit::jwe::serialize_general_json[][src]

pub fn serialize_general_json(
    payload: &[u8],
    header: Option<&JweHeaderSet>,
    recipients: &[(Option<&JweHeader>, &dyn JweEncrypter)],
    aad: Option<&[u8]>
) -> Result<String, JoseError>
Expand description

Return a representation of the data that is formatted by flattened json serialization.

Arguments

  • payload - The payload data.
  • header - The JWE shared protected and unprotected header claims.
  • recipients - The JWE header claims and the JWE encrypter pair for recipients.
  • aad - The JWE additional authenticated data.