BodySigner.php 772 B

123456789101112131415161718192021222324252627282930313233
  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. * @param Swift_Message $message
  20. *
  21. * @return Swift_Signers_BodySigner
  22. */
  23. public function signMessage(Swift_Message $message);
  24. /**
  25. * Return the list of header a signer might tamper
  26. *
  27. * @return array
  28. */
  29. public function getAlteredHeaders();
  30. }