public class ClientUserAuthService extends AbstractCloseable implements Service, SessionHolder<ClientSession>, ClientSessionHolder
ssh-auth service.AbstractCloseable.StatecloseFuture, lock, statelogCLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Constructor and Description |
|---|
ClientUserAuthService(Session s) |
| Modifier and Type | Method and Description |
|---|---|
AuthFuture |
auth(String service) |
ClientSession |
getClientSession() |
ClientSession |
getSession() |
protected void |
preClose()
preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately.
|
void |
process(int cmd,
Buffer buffer)
Service the request.
|
protected void |
processUserAuth(Buffer buffer)
Execute one step in user authentication.
|
void |
start() |
protected void |
tryNext(int cmd) |
addCloseFutureListener, builder, close, doCloseGracefully, doCloseImmediately, isClosed, isClosing, removeCloseFutureListenergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenerpublic ClientUserAuthService(Session s)
public ClientSession getSession()
getSession in interface ServicegetSession in interface SessionHolder<ClientSession>public ClientSession getClientSession()
getClientSession in interface ClientSessionHolderClientSession usedpublic AuthFuture auth(String service) throws IOException
IOExceptionpublic void process(int cmd,
Buffer buffer)
throws Exception
Serviceprotected void processUserAuth(Buffer buffer) throws Exception
protected void preClose()
AbstractCloseablepreClose in class AbstractCloseableCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.