Class DkimMessage

  • All Implemented Interfaces:
    MimePart, Part

    public class DkimMessage
    extends SMTPMessage
    Extension of SMTPMessage for the inclusion of a DKIM signature.
    Since:
    1.0.0
    Author:
    Torsten Krause (tk at markenwerk dot net), Florian Sager
    • Method Detail

      • writeTo

        public void writeTo​(OutputStream os,
                            String[] ignoreList)
                     throws IOException,
                            MessagingException
        Output the message as an RFC 822 format stream, without specified headers. If the saved flag is not set, the saveChanges method is called. If the modified flag is not set and the content array is not null, the content array is written directly, after writing the appropriate message headers. This method enhances the JavaMail method MimeMessage.writeTo(OutputStream, String[]) See the according Sun license, this contribution is CDDL.
        Overrides:
        writeTo in class MimeMessage
        Throws:
        MessagingException - If an error occurs while preparing this message for writing.
        IOException - If an error occurs while writing to the stream or if an error is generated by the javax.activation layer.
      • getEncodedBody

        protected String getEncodedBody()
        Returns the encoded body.
        Returns:
        The encoded body.