pub fn encode_with_encrypter(
    payload: &JwtPayload,
    header: &JweHeader,
    encrypter: &dyn JweEncrypter
) -> Result<String, JoseError>
Expand description

Return the string repsentation of the JWT with the encrypting algorithm.

§Arguments

  • payload - The payload data.
  • header - The JWE heaser claims.
  • encrypter - a encrypter object.