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.
|
stat
protected static final Response AUTH_FAILED
public Response onCommand(POP3Session session, Request request)
onCommand
in interface CommandHandler<POP3Session>
onCommand
in class RsetCmdHandler
protected final Response doAuth(POP3Session session, String user, String pass)
Response
session
- user
- pass
- public Collection<String> getImplCommands()
CommandHandler
getImplCommands
in interface CommandHandler<POP3Session>
getImplCommands
in class RsetCmdHandler
CommandHandler.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
- Exception
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.