public class ClientUserAuthService extends AbstractCloseable implements Service, SessionHolder<ClientSession>, ClientSessionHolder
ssh-auth
service.AbstractCloseable.State
closeFuture, lock, state
log
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) |
builder, close, doCloseGracefully, doCloseImmediately, isClosed, isClosing
close, isOpen
public ClientUserAuthService(Session s)
public ClientSession getSession()
getSession
in interface Service
getSession
in interface SessionHolder<ClientSession>
public ClientSession getClientSession()
getClientSession
in interface ClientSessionHolder
ClientSession
usedpublic AuthFuture auth(String service) throws IOException
IOException
public void process(int cmd, Buffer buffer) throws Exception
Service
protected void processUserAuth(Buffer buffer) throws Exception
protected void preClose()
AbstractCloseable
preClose
in class AbstractCloseable
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.