public class ServerUserAuthService extends AbstractCloseable implements Service, ServerSessionHolder
AbstractCloseable.State
closeFuture, lock, state
log
CLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT
Constructor and Description |
---|
ServerUserAuthService(Session s) |
Modifier and Type | Method and Description |
---|---|
protected void |
asyncAuth(int cmd,
Buffer buffer,
boolean authed) |
ServerFactoryManager |
getFactoryManager() |
ServerSession |
getServerSession() |
ServerSession |
getSession() |
WelcomeBannerPhase |
getWelcomePhase() |
protected void |
handleAuthenticationFailure(int cmd,
Buffer buffer) |
protected void |
handleAuthenticationInProgress(int cmd,
Buffer buffer) |
protected void |
handleAuthenticationSuccess(int cmd,
Buffer buffer) |
protected String |
loadWelcomeBanner(ServerSession session,
URL url,
Charset cs) |
void |
process(int cmd,
Buffer buffer)
Service the request.
|
protected String |
resolveWelcomeBanner(ServerSession session) |
IoWriteFuture |
sendWelcomeBanner(ServerSession session)
Sends the welcome banner (if any configured) and if not already invoked
|
void |
start() |
addCloseFutureListener, builder, close, doCloseGracefully, doCloseImmediately, isClosed, isClosing, preClose, removeCloseFutureListener
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListener
public ServerUserAuthService(Session s) throws IOException
IOException
public WelcomeBannerPhase getWelcomePhase()
public ServerSession getSession()
getSession
in interface Service
public ServerSession getServerSession()
getServerSession
in interface ServerSessionHolder
ServerSession
usedpublic void process(int cmd, Buffer buffer) throws Exception
Service
protected void asyncAuth(int cmd, Buffer buffer, boolean authed)
protected void handleAuthenticationInProgress(int cmd, Buffer buffer) throws Exception
Exception
protected void handleAuthenticationSuccess(int cmd, Buffer buffer) throws Exception
Exception
protected void handleAuthenticationFailure(int cmd, Buffer buffer) throws Exception
Exception
public IoWriteFuture sendWelcomeBanner(ServerSession session) throws IOException
session
- The ServerSession
to send the welcome banner toIoWriteFuture
- null
if none sentIOException
- If failed to send the bannerprotected String resolveWelcomeBanner(ServerSession session) throws IOException
IOException
protected String loadWelcomeBanner(ServerSession session, URL url, Charset cs) throws IOException
IOException
public ServerFactoryManager getFactoryManager()
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.