Uses of Interface
org.apache.sshd.server.session.ServerSession
Packages that use ServerSession
Package
Description
-
Uses of ServerSession in org.apache.sshd.server.auth
Fields in org.apache.sshd.server.auth declared as ServerSessionMethods in org.apache.sshd.server.auth that return ServerSessionModifier and TypeMethodDescriptionAbstractUserAuth.getServerSession()
AbstractUserAuth.getSession()
Methods in org.apache.sshd.server.auth with parameters of type ServerSessionModifier and TypeMethodDescriptionAbstractUserAuth.auth
(ServerSession session, String username, String service, Buffer buffer) UserAuth.auth
(ServerSession session, String username, String service, Buffer buffer) Try to authenticate the user.UserAuthNoneFactory.createUserAuth
(ServerSession session) -
Uses of ServerSession in org.apache.sshd.server.auth.gss
Methods in org.apache.sshd.server.auth.gss with parameters of type ServerSessionModifier and TypeMethodDescriptionUserAuthGSSFactory.createUserAuth
(ServerSession session) boolean
GSSAuthenticator.validateIdentity
(ServerSession session, String identity) Validate the source identity obtained from the context after negotiation is complete.boolean
GSSAuthenticator.validateInitialUser
(ServerSession session, String user) Validate the user name passed in the initial SSH_MSG_USERAUTH_REQUEST message. -
Uses of ServerSession in org.apache.sshd.server.auth.hostbased
Methods in org.apache.sshd.server.auth.hostbased with parameters of type ServerSessionModifier and TypeMethodDescriptionboolean
HostBasedAuthenticator.authenticate
(ServerSession session, String username, PublicKey clientHostKey, String clientHostName, String clientUsername, List<X509Certificate> certificates) final boolean
StaticHostBasedAuthenticator.authenticate
(ServerSession session, String username, PublicKey clientHostKey, String clientHostName, String clientUsername, List<X509Certificate> certificates) UserAuthHostBasedFactory.createUserAuth
(ServerSession session) protected void
StaticHostBasedAuthenticator.handleAcceptance
(ServerSession session, String username, PublicKey clientHostKey, String clientHostName, String clientUsername, List<X509Certificate> certificates) protected void
StaticHostBasedAuthenticator.handleRejection
(ServerSession session, String username, PublicKey clientHostKey, String clientHostName, String clientUsername, List<X509Certificate> certificates) -
Uses of ServerSession in org.apache.sshd.server.auth.keyboard
Methods in org.apache.sshd.server.auth.keyboard with parameters of type ServerSessionModifier and TypeMethodDescriptionboolean
DefaultKeyboardInteractiveAuthenticator.authenticate
(ServerSession session, String username, List<String> responses) boolean
KeyboardInteractiveAuthenticator.authenticate
(ServerSession session, String username, List<String> responses) Called to authenticate the response to the challenge(s) sent previouslyUserAuthKeyboardInteractiveFactory.createUserAuth
(ServerSession session) protected Boolean
UserAuthKeyboardInteractive.doInitialAuth
(ServerSession session, String username, KeyboardInteractiveAuthenticator auth, Buffer buffer) protected Boolean
UserAuthKeyboardInteractive.doValidateAuthResponse
(ServerSession session, String username, KeyboardInteractiveAuthenticator auth, Buffer buffer) DefaultKeyboardInteractiveAuthenticator.generateChallenge
(ServerSession session, String username, String lang, String subMethods) KeyboardInteractiveAuthenticator.generateChallenge
(ServerSession session, String username, String lang, String subMethods) Generates the interactive "challenge" to send to the clientprotected String
DefaultKeyboardInteractiveAuthenticator.getInteractionInstruction
(ServerSession session) protected String
DefaultKeyboardInteractiveAuthenticator.getInteractionLanguage
(ServerSession session) protected String
DefaultKeyboardInteractiveAuthenticator.getInteractionName
(ServerSession session) protected String
DefaultKeyboardInteractiveAuthenticator.getInteractionPrompt
(ServerSession session) protected boolean
DefaultKeyboardInteractiveAuthenticator.isInteractionPromptEchoEnabled
(ServerSession session) -
Uses of ServerSession in org.apache.sshd.server.auth.password
Methods in org.apache.sshd.server.auth.password with parameters of type ServerSessionModifier and TypeMethodDescriptionboolean
PasswordAuthenticator.authenticate
(String username, String password, ServerSession session) Check the validity of a password.final boolean
StaticPasswordAuthenticator.authenticate
(String username, String password, ServerSession session) protected Boolean
UserAuthPassword.checkPassword
(Buffer buffer, ServerSession session, String username, String password) Invokes the configuredPasswordAuthenticator
and returns the result.UserAuthPasswordFactory.createUserAuth
(ServerSession session) protected void
StaticPasswordAuthenticator.handleAcceptance
(String username, String password, ServerSession session) default boolean
PasswordAuthenticator.handleClientPasswordChangeRequest
(ServerSession session, String username, String oldPassword, String newPassword) Invoked when the client sends aSSH_MSG_USERAUTH_REQUEST
indicating a password change.protected Boolean
UserAuthPassword.handleClientPasswordChangeRequest
(Buffer buffer, ServerSession session, String username, String oldPassword, String newPassword) Invoked when the client sends aSSH_MSG_USERAUTH_REQUEST
indicating a password change.protected void
StaticPasswordAuthenticator.handleRejection
(String username, String password, ServerSession session) protected Boolean
UserAuthPassword.handleServerPasswordChangeRequest
(Buffer buffer, ServerSession session, String username, String password, PasswordChangeRequiredException e) Invoked byUserAuthPassword.checkPassword(Buffer, ServerSession, String, String)
when aPasswordChangeRequiredException
was thrown by the authenticator. -
Uses of ServerSession in org.apache.sshd.server.auth.pubkey
Methods in org.apache.sshd.server.auth.pubkey with parameters of type ServerSessionModifier and TypeMethodDescriptionboolean
AuthorizedKeyEntriesPublickeyAuthenticator.authenticate
(String username, PublicKey key, ServerSession session) boolean
CachingPublicKeyAuthenticator.authenticate
(String username, PublicKey key, ServerSession session) boolean
KeySetPublickeyAuthenticator.authenticate
(String username, PublicKey key, ServerSession session) boolean
KeySetPublickeyAuthenticator.authenticate
(String username, PublicKey key, ServerSession session, Collection<? extends PublicKey> keys) boolean
PublickeyAuthenticator.authenticate
(String username, PublicKey key, ServerSession session) Check the validity of a public key.final boolean
StaticPublickeyAuthenticator.authenticate
(String username, PublicKey key, ServerSession session) UserAuthPublicKeyFactory.createUserAuth
(ServerSession session) static PublickeyAuthenticator
PublickeyAuthenticator.fromAuthorizedEntries
(Object id, ServerSession session, Collection<? extends AuthorizedKeyEntry> entries, PublicKeyEntryResolver fallbackResolver) protected void
StaticPublickeyAuthenticator.handleAcceptance
(String username, PublicKey key, ServerSession session) protected void
StaticPublickeyAuthenticator.handleRejection
(String username, PublicKey key, ServerSession session) CachingPublicKeyAuthenticator.resolveCachedResults
(String username, PublicKey key, ServerSession session) protected void
UserAuthPublicKey.sendPublicKeyResponse
(ServerSession session, String username, String alg, PublicKey key, byte[] keyBlob, int offset, int blobLen, Buffer buffer) protected boolean
UserAuthPublicKey.verifySignature
(ServerSession session, String username, String alg, PublicKey key, Buffer buffer, Signature verifier, byte[] sig) Constructors in org.apache.sshd.server.auth.pubkey with parameters of type ServerSessionModifierConstructorDescriptionAuthorizedKeyEntriesPublickeyAuthenticator
(Object id, ServerSession session, Collection<? extends AuthorizedKeyEntry> entries, PublicKeyEntryResolver fallbackResolver) -
Uses of ServerSession in org.apache.sshd.server.channel
Methods in org.apache.sshd.server.channel that return ServerSessionModifier and TypeMethodDescriptiondefault ServerSession
ServerChannel.getServerSession()
ChannelSession.getSession()
Methods in org.apache.sshd.server.channel with parameters of type ServerSessionModifier and TypeMethodDescriptionprotected RequestHandler.Result
ChannelSession.handleX11ForwardingParsed
(String requestType, ServerSession session, boolean singleConnection, String authProtocol, String authCookie, int screenId) -
Uses of ServerSession in org.apache.sshd.server.command
Fields in org.apache.sshd.server.command declared as ServerSessionMethods in org.apache.sshd.server.command that return ServerSessionModifier and TypeMethodDescriptionAbstractCommandSupport.getServerSession()
AbstractCommandSupport.getSession()
Methods in org.apache.sshd.server.command with parameters of type ServerSession -
Uses of ServerSession in org.apache.sshd.server.config.keys
Methods in org.apache.sshd.server.config.keys with parameters of type ServerSessionModifier and TypeMethodDescriptionboolean
AuthorizedKeysAuthenticator.authenticate
(String username, PublicKey key, ServerSession session) protected PublickeyAuthenticator
AuthorizedKeysAuthenticator.createDelegateAuthenticator
(String username, ServerSession session, Path path, Collection<AuthorizedKeyEntry> entries, PublicKeyEntryResolver fallbackResolver) protected boolean
AuthorizedKeysAuthenticator.isValidUsername
(String username, ServerSession session) protected boolean
DefaultAuthorizedKeysAuthenticator.isValidUsername
(String username, ServerSession session) protected Collection<AuthorizedKeyEntry>
AuthorizedKeysAuthenticator.reloadAuthorizedKeys
(Path path, String username, ServerSession session) protected Collection<AuthorizedKeyEntry>
DefaultAuthorizedKeysAuthenticator.reloadAuthorizedKeys
(Path path, String username, ServerSession session) protected PublickeyAuthenticator
AuthorizedKeysAuthenticator.resolvePublickeyAuthenticator
(String username, ServerSession session) -
Uses of ServerSession in org.apache.sshd.server.jaas
Methods in org.apache.sshd.server.jaas with parameters of type ServerSessionModifier and TypeMethodDescriptionboolean
JaasPasswordAuthenticator.authenticate
(String username, String password, ServerSession session) -
Uses of ServerSession in org.apache.sshd.server.kex
Methods in org.apache.sshd.server.kex that return ServerSessionModifier and TypeMethodDescriptionfinal ServerSession
AbstractDHServerKeyExchange.getServerSession()
Methods in org.apache.sshd.server.kex with parameters of type ServerSessionModifier and TypeMethodDescriptionprotected List<Moduli.DhGroup>
DHGEXServer.loadModuliGroups
(ServerSession session) protected List<Moduli.DhGroup>
DHGEXServer.selectModuliGroups
(ServerSession session, int min, int prf, int max, List<Moduli.DhGroup> groups) -
Uses of ServerSession in org.apache.sshd.server.session
Classes in org.apache.sshd.server.session that implement ServerSessionModifier and TypeClassDescriptionclass
Provides default implementations forServerSession
related methodsclass
The default implementation for aServerSession
Fields in org.apache.sshd.server.session declared as ServerSessionMethods in org.apache.sshd.server.session that return ServerSessionModifier and TypeMethodDescriptionfinal ServerSession
ServerConnectionService.getServerSession()
ServerSessionHolder.getServerSession()
ServerUserAuthService.getServerSession()
ServerUserAuthService.getSession()
Methods in org.apache.sshd.server.session with parameters of type ServerSessionModifier and TypeMethodDescriptionboolean
ServerProxyAcceptor.acceptServerProxyMetadata
(ServerSession session, Buffer buffer) Invoked before any attempt is made to retrieve the SSH client identification data of the standard SSH protocol.protected boolean
ServerUserAuthService.handleUserAuthRequestMessage
(ServerSession session, Buffer buffer, AtomicReference<Boolean> authHolder) protected String
ServerUserAuthService.loadWelcomeBanner
(ServerSession session, URL url, Charset cs) protected String
ServerUserAuthService.resolveWelcomeBanner
(ServerSession session) ServerUserAuthService.sendWelcomeBanner
(ServerSession session) Sends the welcome banner (if any configured) and if not already invokedvoid
ServerSessionAware.setSession
(ServerSession session) -
Uses of ServerSession in org.apache.sshd.server.shell
Fields in org.apache.sshd.server.shell declared as ServerSessionMethods in org.apache.sshd.server.shell that return ServerSessionModifier and TypeMethodDescriptionProcessShell.getServerSession()
default ServerSession
InvertedShell.getSession()
Methods in org.apache.sshd.server.shell with parameters of type ServerSessionModifier and TypeMethodDescriptionvoid
InvertedShellWrapper.setSession
(ServerSession session) void
ProcessShell.setSession
(ServerSession session) -
Uses of ServerSession in org.apache.sshd.sftp.server
Fields in org.apache.sshd.sftp.server declared as ServerSessionMethods in org.apache.sshd.sftp.server that return ServerSessionModifier and TypeMethodDescriptionSftpSubsystem.getServerSession()
default ServerSession
SftpSubsystemEnvironment.getSession()
Methods in org.apache.sshd.sftp.server with parameters of type ServerSessionModifier and TypeMethodDescriptionprotected int
AbstractSftpSubsystemHelper.appendAclSupportedExtension
(Buffer buffer, ServerSession session) protected String
AbstractSftpSubsystemHelper.appendNewlineExtension
(Buffer buffer, ServerSession session) Appends the "newline" extension to the buffer.AbstractSftpSubsystemHelper.appendOpenSSHExtensions
(Buffer buffer, ServerSession session) AbstractSftpSubsystemHelper.appendVendorIdExtension
(Buffer buffer, Map<String, ?> versionProperties, ServerSession session) Appends the "vendor-id" extension to the buffer.protected String
AbstractSftpSubsystemHelper.appendVersionsExtension
(Buffer buffer, String value, ServerSession session) Appends the "versions" extension to the buffer.void
AbstractSftpEventListenerAdapter.blocked
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, long length, int mask, Throwable thrown) default void
SftpEventListener.blocked
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, long length, int mask, Throwable thrown) Called after blocking a file sectionvoid
AbstractSftpEventListenerAdapter.blocking
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, long length, int mask) default void
SftpEventListener.blocking
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, long length, int mask) Called prior to blocking a file sectionvoid
AbstractSftpEventListenerAdapter.closed
(ServerSession session, String remoteHandle, Handle localHandle, Throwable thrown) default void
SftpEventListener.closed
(ServerSession session, String remoteHandle, Handle localHandle, Throwable thrown) Specified file / directory has been closedvoid
AbstractSftpEventListenerAdapter.closing
(ServerSession session, String remoteHandle, Handle localHandle) default void
SftpEventListener.closing
(ServerSession session, String remoteHandle, Handle localHandle) Specified file / directory about to be closedvoid
AbstractSftpEventListenerAdapter.created
(ServerSession session, Path path, Map<String, ?> attrs, Throwable thrown) default void
Called after creating a directoryvoid
AbstractSftpEventListenerAdapter.creating
(ServerSession session, Path path, Map<String, ?> attrs) default void
SftpEventListener.creating
(ServerSession session, Path path, Map<String, ?> attrs) Called prior to creating a directoryvoid
AbstractSftpEventListenerAdapter.destroying
(ServerSession session) default void
SftpEventListener.destroying
(ServerSession session) Called when subsystem is destroyed since it was closedvoid
AbstractSftpEventListenerAdapter.exiting
(ServerSession session, Handle handle) default void
SftpEventListener.exiting
(ServerSession session, Handle handle) Called when subsystem is exiting due to being destroyedprotected Map<String,
OptionalFeature> AbstractSftpSubsystemHelper.getSupportedClientExtensions
(ServerSession session) void
AbstractSftpEventListenerAdapter.initialized
(ServerSession session, int version) default void
SftpEventListener.initialized
(ServerSession session, int version) Called when the SFTP protocol has been initializedprotected void
SftpSubsystem.initializeSessionRelatedMember
(ServerSession session, ChannelSession channel) void
AbstractSftpEventListenerAdapter.linked
(ServerSession session, Path source, Path target, boolean symLink, Throwable thrown) default void
SftpEventListener.linked
(ServerSession session, Path source, Path target, boolean symLink, Throwable thrown) Called after creating a linkvoid
AbstractSftpEventListenerAdapter.linking
(ServerSession session, Path source, Path target, boolean symLink) default void
SftpEventListener.linking
(ServerSession session, Path source, Path target, boolean symLink) Called prior to creating a linkvoid
AbstractSftpEventListenerAdapter.modifiedAttributes
(ServerSession session, Path path, Map<String, ?> attrs, Throwable thrown) default void
SftpEventListener.modifiedAttributes
(ServerSession session, Path path, Map<String, ?> attrs, Throwable thrown) Called after modifying the attributes of a file / directoryvoid
AbstractSftpEventListenerAdapter.modifyingAttributes
(ServerSession session, Path path, Map<String, ?> attrs) default void
SftpEventListener.modifyingAttributes
(ServerSession session, Path path, Map<String, ?> attrs) Called prior to modifying the attributes of a file / directoryvoid
AbstractSftpEventListenerAdapter.moved
(ServerSession session, Path srcPath, Path dstPath, Collection<CopyOption> opts, Throwable thrown) default void
SftpEventListener.moved
(ServerSession session, Path srcPath, Path dstPath, Collection<CopyOption> opts, Throwable thrown) Called after renaming a file / directoryvoid
AbstractSftpEventListenerAdapter.moving
(ServerSession session, Path srcPath, Path dstPath, Collection<CopyOption> opts) default void
SftpEventListener.moving
(ServerSession session, Path srcPath, Path dstPath, Collection<CopyOption> opts) Called prior to renaming a file / directoryvoid
AbstractSftpEventListenerAdapter.open
(ServerSession session, String remoteHandle, Handle localHandle) default void
SftpEventListener.open
(ServerSession session, String remoteHandle, Handle localHandle) Specified file / directory has been openedvoid
AbstractSftpEventListenerAdapter.openFailed
(ServerSession session, String remotePath, Path localPath, boolean isDirectory, Throwable thrown) default void
SftpEventListener.openFailed
(ServerSession session, String remotePath, Path localPath, boolean isDirectory, Throwable thrown) Specified file / directory could not be opened - Note: this call may occur withoutSftpEventListener.opening(ServerSession, String, Handle)
ever having been calledvoid
AbstractSftpEventListenerAdapter.opening
(ServerSession session, String remoteHandle, Handle localHandle) default void
SftpEventListener.opening
(ServerSession session, String remoteHandle, Handle localHandle) Specified file / directory is being openedvoid
AbstractSftpEventListenerAdapter.read
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, int readLen, Throwable thrown) default void
SftpEventListener.read
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, int readLen, Throwable thrown) Result of reading from a filevoid
AbstractSftpEventListenerAdapter.readEntries
(ServerSession session, String remoteHandle, DirectoryHandle localHandle, Map<String, Path> entries) default void
SftpEventListener.readEntries
(ServerSession session, String remoteHandle, DirectoryHandle localHandle, Map<String, Path> entries) Result of reading entries from a directory - Note: it may be a partial result if the directory contains more entries than can be accommodated in the responsevoid
AbstractSftpEventListenerAdapter.reading
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen) default void
SftpEventListener.reading
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen) Preparing to read from a filevoid
AbstractSftpEventListenerAdapter.readingEntries
(ServerSession session, String remoteHandle, DirectoryHandle localHandle) default void
SftpEventListener.readingEntries
(ServerSession session, String remoteHandle, DirectoryHandle localHandle) About to read entries from a directory - Note: might not be the 1st time it is called for the directory in case several iterations are required in order to go through all the entries in the directorydefault void
SftpEventListener.received
(ServerSession session, int type, int id) Called when a SFTP request has been received before it is processed.void
AbstractSftpEventListenerAdapter.receivedExtension
(ServerSession session, String extension, int id) default void
SftpEventListener.receivedExtension
(ServerSession session, String extension, int id) Called when a SFTP extension requestSftpConstants.SSH_FXP_EXTENDED
has been received before it is processed.void
AbstractSftpEventListenerAdapter.removed
(ServerSession session, Path path, boolean isDirectory, Throwable thrown) default void
SftpEventListener.removed
(ServerSession session, Path path, boolean isDirectory, Throwable thrown) Called after a file has been removedvoid
AbstractSftpEventListenerAdapter.removing
(ServerSession session, Path path, boolean isDirectory) default void
SftpEventListener.removing
(ServerSession session, Path path, boolean isDirectory) Called prior to removing a fileprotected Collection<Integer>
AbstractSftpSubsystemHelper.resolveAclSupportedCapabilities
(ServerSession session) protected String
AbstractSftpSubsystemHelper.resolveNewlineValue
(ServerSession session) AbstractSftpSubsystemHelper.resolveOpenSSHExtensions
(ServerSession session) void
AbstractSftpEventListenerAdapter.unblocked
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, long length, Throwable thrown) default void
SftpEventListener.unblocked
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, long length, Throwable thrown) Called prior to un-blocking a file sectionvoid
AbstractSftpEventListenerAdapter.unblocking
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, long length) default void
SftpEventListener.unblocking
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, long length) Called prior to un-blocking a file sectionprotected void
AbstractSftpSubsystemHelper.writeDirEntry
(ServerSession session, int id, Buffer buffer, int index, Path f, String shortName, SftpClient.Attributes attributes) void
AbstractSftpEventListenerAdapter.writing
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen) default void
SftpEventListener.writing
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen) Preparing to write to filevoid
AbstractSftpEventListenerAdapter.written
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, Throwable thrown) default void
SftpEventListener.written
(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, Throwable thrown) Finished to writing to file