Class ServerUserAuthService
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.closeable.IoBaseCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.server.session.ServerUserAuthService
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, org.apache.sshd.common.Closeable, org.apache.sshd.common.PropertyResolver, Service, org.apache.sshd.common.session.SessionContextHolder, SessionHolder<Session>, ServerSessionHolder
public class ServerUserAuthService
extends org.apache.sshd.common.util.closeable.AbstractCloseable
implements Service, ServerSessionHolder
- Author:
- Apache MINA SSHD Project
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable.State -
Field Summary
Fields inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
closeFuture, futureLock, stateFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.PropertyResolver
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidasyncAuth(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer, boolean authed) protected voidhandleAuthenticationFailure(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer) protected voidhandleAuthenticationInProgress(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer) protected voidhandleAuthenticationSuccess(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer) protected booleanhandleUserAuthRequestMessage(ServerSession session, org.apache.sshd.common.util.buffer.Buffer buffer, AtomicReference<Boolean> authHolder) protected StringloadWelcomeBanner(ServerSession session, URL url, Charset cs) voidprocess(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer) Service the request.protected StringresolveWelcomeBanner(ServerSession session) org.apache.sshd.common.io.IoWriteFuturesendWelcomeBanner(ServerSession session) Sends the welcome banner (if any configured) and if not already invokedvoidstart()Methods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
addCloseFutureListener, builder, close, doCloseGracefully, doCloseImmediately, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListenerMethods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListenerMethods inherited from interface org.apache.sshd.common.PropertyResolver
getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getString, getStringProperty, isEmptyMethods inherited from interface Service
getParentPropertyResolverMethods inherited from interface SessionHolder
getSessionContext
-
Constructor Details
-
ServerUserAuthService
- Throws:
IOException
-
-
Method Details
-
getWelcomePhase
-
start
-
getSession
- Specified by:
getSessionin interfaceSessionHolder<Session>
-
getServerSession
- Specified by:
getServerSessionin interfaceServerSessionHolder- Returns:
- The underlying
ServerSessionused
-
getProperties
-
process
Description copied from interface:ServiceService the request. -
handleUserAuthRequestMessage
protected boolean handleUserAuthRequestMessage(ServerSession session, org.apache.sshd.common.util.buffer.Buffer buffer, AtomicReference<Boolean> authHolder) throws Exception - Throws:
Exception
-
asyncAuth
protected void asyncAuth(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer, boolean authed) -
handleAuthenticationInProgress
-
handleAuthenticationSuccess
-
handleAuthenticationFailure
-
sendWelcomeBanner
public org.apache.sshd.common.io.IoWriteFuture sendWelcomeBanner(ServerSession session) throws IOException Sends the welcome banner (if any configured) and if not already invoked- Parameters:
session- TheServerSessionto send the welcome banner to- Returns:
- The sent welcome banner
IoWriteFuture-nullif none sent - Throws:
IOException- If failed to send the banner
-
resolveWelcomeBanner
- Throws:
IOException
-
loadWelcomeBanner
- Throws:
IOException
-
getFactoryManager
-