public class ClientUserAuthService extends AbstractCloseable implements Service, ClientSessionHolder
ssh-auth service.AbstractCloseable.State| Modifier and Type | Field and Description |
|---|---|
protected List<UserAuthFactory> |
authFactories |
protected AtomicReference<AuthFuture> |
authFutureHolder
The AuthFuture that is being used by the current auth request.
|
protected List<String> |
clientMethods |
protected ClientSessionImpl |
clientSession |
protected List<String> |
serverMethods |
closeFuture, futureLock, statelogEMPTY| Constructor and Description |
|---|
ClientUserAuthService(Session s) |
| Modifier and Type | Method and Description |
|---|---|
AuthFuture |
auth(String service) |
protected AuthFuture |
createAuthFuture(ClientSession session,
String service) |
ClientSession |
getClientSession() |
String |
getCurrentServiceName() |
Map<String,Object> |
getProperties() |
ClientSession |
getSession() |
protected void |
preClose() |
void |
process(int cmd,
Buffer buffer)
Service the request.
|
protected void |
processUserAuth(Buffer buffer)
Execute one step in user authentication.
|
protected IoWriteFuture |
sendInitialAuthRequest(ClientSession session,
String service) |
void |
start() |
protected void |
tryNext(int cmd) |
protected AuthFuture |
updateCurrentAuthFuture(ClientSession session,
String service) |
addCloseFutureListener, builder, close, doCloseGracefully, doCloseImmediately, getFutureLock, isClosed, isClosing, removeCloseFutureListenerdebug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParentPropertyResolvergetSessionContextgetBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getString, getStringProperty, isEmpty, isEmptyaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenerprotected final AtomicReference<AuthFuture> authFutureHolder
protected final ClientSessionImpl clientSession
protected final List<UserAuthFactory> authFactories
public ClientUserAuthService(Session s)
public ClientSession getSession()
getSession in interface SessionHolder<Session>public ClientSession getClientSession()
getClientSession in interface ClientSessionHolderClientSession usedpublic Map<String,Object> getProperties()
getProperties in interface PropertyResolverpublic String getCurrentServiceName()
public AuthFuture auth(String service) throws IOException
IOExceptionprotected AuthFuture updateCurrentAuthFuture(ClientSession session, String service) throws IOException
IOExceptionprotected AuthFuture createAuthFuture(ClientSession session, String service) throws IOException
IOExceptionprotected IoWriteFuture sendInitialAuthRequest(ClientSession session, String service) throws IOException
IOExceptionpublic void process(int cmd,
Buffer buffer)
throws Exception
Serviceprotected void processUserAuth(Buffer buffer) throws Exception
protected void preClose()
preClose in class AbstractCloseableCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.