cz.utb.fai.simkovicp.pki.mail
Class Sender

java.lang.Object
  extended by cz.utb.fai.simkovicp.pki.mail.Sender
All Implemented Interfaces:
java.io.Serializable

public class Sender
extends java.lang.Object
implements java.io.Serializable

This class provides the sending of the email.

See Also:
Serialized Form

Constructor Summary
Sender()
           
 
Method Summary
 byte[] send(java.util.List<Recipient> recipients, java.lang.String subject, java.lang.String body, java.util.List<Attachment> attachments, boolean sign, boolean encrypt, EncryptionBean signBean, EncryptionBean encBean, boolean out)
          Sends the email.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sender

public Sender()
Method Detail

send

public byte[] send(java.util.List<Recipient> recipients,
                   java.lang.String subject,
                   java.lang.String body,
                   java.util.List<Attachment> attachments,
                   boolean sign,
                   boolean encrypt,
                   EncryptionBean signBean,
                   EncryptionBean encBean,
                   boolean out)
            throws MailException
Sends the email.

Parameters:
recipients - - the list of mail recipients
subject - - the subject
body - - the body
attachments - - the list of attachments
sign - - true for signing the email
encrypt - - true for crypt the email
signBean - - the bean with signing certificate info
encBean - - the bean with crypt certificate info
out - - true if this method shall return the sent email
Returns:
sent email
Throws:
MailException