BodySigner.php 706 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2004-2009 Chris Corbyn
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * Body Signer Interface used to apply Body-Based Signature to a message.
  11. *
  12. * @author Xavier De Cock <xdecock@gmail.com>
  13. */
  14. interface Swift_Signers_BodySigner extends Swift_Signer
  15. {
  16. /**
  17. * Change the Swift_Signed_Message to apply the singing.
  18. *
  19. * @return self
  20. */
  21. public function signMessage(Swift_Message $message);
  22. /**
  23. * Return the list of header a signer might tamper.
  24. *
  25. * @return array
  26. */
  27. public function getAlteredHeaders();
  28. }