Function josekit::jwe::serialize_compact_with_selector[][src]

pub fn serialize_compact_with_selector<'a, F>(
    payload: &[u8],
    header: &JweHeader,
    selector: F
) -> Result<String, JoseError> where
    F: Fn(&JweHeader) -> Option<&'a dyn JweEncrypter>, 
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.