| java.lang.Object com.ivata.groupware.admin.security.server.AbstractSecuritySession com.ivata.groupware.business.mail.session.MailSession
MailSession | public class MailSession extends AbstractSecuritySession (Code) | | javax.mail.Session is not serializable and cannot
be passed from client to server. This class stores the login details
an provides a new session instance when required, by logging in
again.
since: 2002-09-08 author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.4 $ |
Constructor Summary | |
public | MailSession(PicoContainer container, UserDO user) Construct a new mail session. |
Method Summary | |
public Session | getJavaMailSession() Return the current mail session as a
javax.mail.Session instance. | public Session | login(String password, Properties mailProperties) Logs into the mail session for the first time. |
authenticator | public MailAuthenticator authenticator(Code) | | Used to autheticate this mail session, whenever the
javax.mail.Session is recreated.
|
MailSession | public MailSession(PicoContainer container, UserDO user) throws SystemException(Code) | | Construct a new mail session.
|
getJavaMailSession | public Session getJavaMailSession() throws SecurityServerException, NoSuchProviderException, MessagingException(Code) | | Return the current mail session as a
javax.mail.Session instance. This involves logging in
again.
throws: AuthenticationException - thrown by JavaMail if the user cannot login. throws: NoSuchProviderException - thrown by JavaMail if the user cannot login. throws: MessagingException - thrown by JavaMail if the user cannot login. the current mail session as ajavax.mail.Session instance. |
login | public Session login(String password, Properties mailProperties) throws SecurityServerException, NoSuchProviderException, MessagingException(Code) | | Logs into the mail session for the first time. This stores the
user name and password so that the session can be continued again
later.
Parameters: password - clear-text user's password to log into the mailserver. Parameters: mailProperties - all of the mail properties necessary to loginto the system. throws: AuthenticationException - thrown by JavaMail if the user cannotlogin. newly created mail session. |
|
|