public abstract class AbstractPassCmdHandler extends RsetCmdHandler
| Modifier and Type | Field and Description |
|---|---|
protected static Response |
AUTH_FAILED |
| Constructor and Description |
|---|
AbstractPassCmdHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Mailbox |
auth(POP3Session session,
String username,
String password)
Authenticate a
POP3Session and returns the Mailbox for it. |
protected Response |
doAuth(POP3Session session,
String user,
String pass)
Authenticate a user and return the
Response |
Collection<String> |
getImplCommands()
Return a Collection of implemented commands
|
Response |
onCommand(POP3Session session,
Request request)
Handler method called upon receipt of a PASS command.
|
statprotected static final Response AUTH_FAILED
public Response onCommand(POP3Session session, Request request)
onCommand in interface CommandHandler<POP3Session>onCommand in class RsetCmdHandlerprotected final Response doAuth(POP3Session session, String user, String pass)
Responsesession - user - pass - public Collection<String> getImplCommands()
CommandHandlergetImplCommands in interface CommandHandler<POP3Session>getImplCommands in class RsetCmdHandlerCommandHandler.getImplCommands()protected abstract Mailbox auth(POP3Session session, String username, String password) throws Exception
POP3Session and returns the Mailbox for it. If it can not get authenticated it will return null.session - user - password - ExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.