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