org.mailster.pop3.commands.auth
Class AuthLoginCommand
java.lang.Object
org.mailster.pop3.commands.Pop3Command
org.mailster.pop3.commands.MultiStatePop3Command
org.mailster.pop3.commands.auth.AuthAlgorithmCommand
org.mailster.pop3.commands.auth.AuthLoginCommand
public class AuthLoginCommand
- extends AuthAlgorithmCommand
---
Mailster (C) 2007-2009 De Oliveira Edouard
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 675 Mass
Ave, Cambridge, MA 02139, USA.
See Mailster
Web Site
---
AuthLoginCommand.java - The POP3 AUTH LOGIN command.
- Version:
- $Revision: 1.7 $, $Date: 2009/02/03 00:56:00 $
- Author:
- Edouard De Oliveira
|
Field Summary |
private static int |
ASK_PASSWORD_STATE
Second step of AUTH LOGIN negociation : ask for the password. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASK_PASSWORD_STATE
private static final int ASK_PASSWORD_STATE
- Second step of AUTH LOGIN negociation : ask for the password.
- See Also:
- Constant Field Values
AuthLoginCommand
public AuthLoginCommand()
checkClientResponse
public Pop3CommandState checkClientResponse(AbstractPop3Handler handler,
AbstractPop3Connection conn,
java.lang.String encodedPassword)
throws java.io.IOException
- Specified by:
checkClientResponse in class AuthAlgorithmCommand
- Throws:
java.io.IOException
challengeClient
public Pop3CommandState challengeClient(AbstractPop3Handler handler,
AbstractPop3Connection conn,
java.lang.String cmd)
throws java.lang.Exception
- Specified by:
challengeClient in class AuthAlgorithmCommand
- Throws:
java.lang.Exception
execute
public Pop3CommandState execute(AbstractPop3Handler handler,
AbstractPop3Connection conn,
java.lang.String cmd,
Pop3CommandState state)
- Description copied from class:
MultiStatePop3Command
- Executes the command. If the state returned is different from
Pop3CommandState.COMPLETED_STATE or
Pop3CommandState.ERROR_STATE, it means that execution of the command
needs some additional request/response steps to complete its execution.
- Overrides:
execute in class AuthAlgorithmCommand
- Parameters:
handler - a pop3 handlerconn - a pop3 connectioncmd - the command line sent by the clientstate - the state of the command execution, if null it's considered to
be in the initial state.
- Returns:
- a
Pop3CommandState as the next state of the command