com.informationkinematics.imsforward
Class Authentication

java.lang.Object
  |
  +--com.informationkinematics.imsforward.Authentication

public class Authentication
extends java.lang.Object

Title: Authentication
Description: Handles the user's login procedure on the POP3 host.
Copyright: Copyright (c) 2001 by Information Kinematics under GNU General Public License (see package description for more information)
Company: Information Kinematics

Version:
0.9.2
Author:
Florian Steinsiepe, Adrian Zaugg

Inner Class Summary
 class Authentication.MyAuthenticator
          This implementation of Authenticator overrides the callback method which returns the username / password pair.
 
Field Summary
private  int iNewMailCount
           
private  java.lang.String sPassWord
           
private  java.lang.String sUserName
           
 
Constructor Summary
Authentication(java.lang.String sUserName, java.lang.String sPassWord, java.lang.String sPOP3Host)
          Authenticates the user on the POP3 host and receives the number of mails residing in the related inbox.
The exceptions that may be thrown are specific to a certain problem (wrong authentication data, mailbox locked, host not available or hostname incorrect, transportation error).
 
Method Summary
 int getNewMailCount()
          Returns the number of mails that reside in the user's inbox.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

iNewMailCount

private int iNewMailCount

sUserName

private java.lang.String sUserName

sPassWord

private java.lang.String sPassWord
Constructor Detail

Authentication

public Authentication(java.lang.String sUserName,
                      java.lang.String sPassWord,
                      java.lang.String sPOP3Host)
               throws javax.mail.AuthenticationFailedException,
                      javax.mail.FolderClosedException,
                      javax.mail.NoSuchProviderException,
                      javax.mail.MessagingException
Authenticates the user on the POP3 host and receives the number of mails residing in the related inbox.
The exceptions that may be thrown are specific to a certain problem (wrong authentication data, mailbox locked, host not available or hostname incorrect, transportation error).
Parameters:
sUserName - java.lang.String
sPassWord - java.lang.String
sPOP3Host - java.lang.String
Method Detail

getNewMailCount

public int getNewMailCount()
Returns the number of mails that reside in the user's inbox.
Returns:
int