Uses of Interface
org.apache.sshd.server.session.ServerSession
-
-
Uses of ServerSession in org.apache.sshd.server
Methods in org.apache.sshd.server with parameters of type ServerSession Modifier and Type Method Description void
SessionAware. setSession(ServerSession session)
-
Uses of ServerSession in org.apache.sshd.server.auth
Fields in org.apache.sshd.server.auth declared as ServerSession Modifier and Type Field Description private ServerSession
AbstractUserAuth. session
Methods in org.apache.sshd.server.auth that return ServerSession Modifier and Type Method Description ServerSession
AbstractUserAuth. getServerSession()
ServerSession
AbstractUserAuth. getSession()
Methods in org.apache.sshd.server.auth with parameters of type ServerSession Modifier and Type Method Description java.lang.Boolean
AbstractUserAuth. auth(ServerSession session, java.lang.String username, java.lang.String service, Buffer buffer)
java.lang.Boolean
UserAuth. auth(ServerSession session, java.lang.String username, java.lang.String service, Buffer buffer)
Try to authenticate the user.UserAuthNone
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 ServerSession Modifier and Type Method Description UserAuth
UserAuthGSSFactory. createUserAuth(ServerSession session)
boolean
GSSAuthenticator. validateIdentity(ServerSession session, java.lang.String identity)
Validate the source identity obtained from the context after negotiation is complete.boolean
GSSAuthenticator. validateInitialUser(ServerSession session, java.lang.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 ServerSession Modifier and Type Method Description boolean
HostBasedAuthenticator. authenticate(ServerSession session, java.lang.String username, java.security.PublicKey clientHostKey, java.lang.String clientHostName, java.lang.String clientUsername, java.util.List<java.security.cert.X509Certificate> certificates)
boolean
StaticHostBasedAuthenticator. authenticate(ServerSession session, java.lang.String username, java.security.PublicKey clientHostKey, java.lang.String clientHostName, java.lang.String clientUsername, java.util.List<java.security.cert.X509Certificate> certificates)
UserAuthHostBased
UserAuthHostBasedFactory. createUserAuth(ServerSession session)
protected void
StaticHostBasedAuthenticator. handleAcceptance(ServerSession session, java.lang.String username, java.security.PublicKey clientHostKey, java.lang.String clientHostName, java.lang.String clientUsername, java.util.List<java.security.cert.X509Certificate> certificates)
protected void
StaticHostBasedAuthenticator. handleRejection(ServerSession session, java.lang.String username, java.security.PublicKey clientHostKey, java.lang.String clientHostName, java.lang.String clientUsername, java.util.List<java.security.cert.X509Certificate> certificates)
-
Uses of ServerSession in org.apache.sshd.server.auth.keyboard
Methods in org.apache.sshd.server.auth.keyboard with parameters of type ServerSession Modifier and Type Method Description boolean
DefaultKeyboardInteractiveAuthenticator. authenticate(ServerSession session, java.lang.String username, java.util.List<java.lang.String> responses)
boolean
KeyboardInteractiveAuthenticator. authenticate(ServerSession session, java.lang.String username, java.util.List<java.lang.String> responses)
Called to authenticate the response to the challenge(s) sent previouslyUserAuthKeyboardInteractive
UserAuthKeyboardInteractiveFactory. createUserAuth(ServerSession session)
protected java.lang.Boolean
UserAuthKeyboardInteractive. doInitialAuth(ServerSession session, java.lang.String username, KeyboardInteractiveAuthenticator auth, Buffer buffer)
protected java.lang.Boolean
UserAuthKeyboardInteractive. doValidateAuthResponse(ServerSession session, java.lang.String username, KeyboardInteractiveAuthenticator auth, Buffer buffer)
InteractiveChallenge
DefaultKeyboardInteractiveAuthenticator. generateChallenge(ServerSession session, java.lang.String username, java.lang.String lang, java.lang.String subMethods)
InteractiveChallenge
KeyboardInteractiveAuthenticator. generateChallenge(ServerSession session, java.lang.String username, java.lang.String lang, java.lang.String subMethods)
Generates the interactive "challenge" to send to the clientprotected java.lang.String
DefaultKeyboardInteractiveAuthenticator. getInteractionInstruction(ServerSession session)
protected java.lang.String
DefaultKeyboardInteractiveAuthenticator. getInteractionLanguage(ServerSession session)
protected java.lang.String
DefaultKeyboardInteractiveAuthenticator. getInteractionName(ServerSession session)
protected java.lang.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 ServerSession Modifier and Type Method Description boolean
PasswordAuthenticator. authenticate(java.lang.String username, java.lang.String password, ServerSession session)
Check the validity of a password.boolean
StaticPasswordAuthenticator. authenticate(java.lang.String username, java.lang.String password, ServerSession session)
protected java.lang.Boolean
UserAuthPassword. checkPassword(Buffer buffer, ServerSession session, java.lang.String username, java.lang.String password)
Invokes the configuredPasswordAuthenticator
and returns the result.UserAuthPassword
UserAuthPasswordFactory. createUserAuth(ServerSession session)
protected void
StaticPasswordAuthenticator. handleAcceptance(java.lang.String username, java.lang.String password, ServerSession session)
default boolean
PasswordAuthenticator. handleClientPasswordChangeRequest(ServerSession session, java.lang.String username, java.lang.String oldPassword, java.lang.String newPassword)
Invoked when the client sends aSSH_MSG_USERAUTH_REQUEST
indicating a password change.protected java.lang.Boolean
UserAuthPassword. handleClientPasswordChangeRequest(Buffer buffer, ServerSession session, java.lang.String username, java.lang.String oldPassword, java.lang.String newPassword)
Invoked when the client sends aSSH_MSG_USERAUTH_REQUEST
indicating a password change.protected void
StaticPasswordAuthenticator. handleRejection(java.lang.String username, java.lang.String password, ServerSession session)
protected java.lang.Boolean
UserAuthPassword. handleServerPasswordChangeRequest(Buffer buffer, ServerSession session, java.lang.String username, java.lang.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 ServerSession Modifier and Type Method Description boolean
AuthorizedKeyEntriesPublickeyAuthenticator. authenticate(java.lang.String username, java.security.PublicKey key, ServerSession session)
boolean
CachingPublicKeyAuthenticator. authenticate(java.lang.String username, java.security.PublicKey key, ServerSession session)
boolean
KeySetPublickeyAuthenticator. authenticate(java.lang.String username, java.security.PublicKey key, ServerSession session)
boolean
KeySetPublickeyAuthenticator. authenticate(java.lang.String username, java.security.PublicKey key, ServerSession session, java.util.Collection<? extends java.security.PublicKey> keys)
boolean
PublickeyAuthenticator. authenticate(java.lang.String username, java.security.PublicKey key, ServerSession session)
Check the validity of a public key.boolean
StaticPublickeyAuthenticator. authenticate(java.lang.String username, java.security.PublicKey key, ServerSession session)
UserAuthPublicKey
UserAuthPublicKeyFactory. createUserAuth(ServerSession session)
static PublickeyAuthenticator
PublickeyAuthenticator. fromAuthorizedEntries(java.lang.Object id, ServerSession session, java.util.Collection<? extends AuthorizedKeyEntry> entries, PublicKeyEntryResolver fallbackResolver)
protected void
StaticPublickeyAuthenticator. handleAcceptance(java.lang.String username, java.security.PublicKey key, ServerSession session)
protected void
StaticPublickeyAuthenticator. handleRejection(java.lang.String username, java.security.PublicKey key, ServerSession session)
protected java.util.Map<java.security.PublicKey,java.lang.Boolean>
CachingPublicKeyAuthenticator. resolveCachedResults(java.lang.String username, java.security.PublicKey key, ServerSession session)
protected void
UserAuthPublicKey. sendPublicKeyResponse(ServerSession session, java.lang.String username, java.lang.String alg, java.security.PublicKey key, byte[] keyBlob, int offset, int blobLen, Buffer buffer)
protected boolean
UserAuthPublicKey. verifySignature(ServerSession session, java.lang.String username, java.lang.String alg, java.security.PublicKey key, Buffer buffer, Signature verifier, byte[] sig)
Constructors in org.apache.sshd.server.auth.pubkey with parameters of type ServerSession Constructor Description AuthorizedKeyEntriesPublickeyAuthenticator(java.lang.Object id, ServerSession session, java.util.Collection<? extends AuthorizedKeyEntry> entries, PublicKeyEntryResolver fallbackResolver)
-
Uses of ServerSession in org.apache.sshd.server.channel
Methods in org.apache.sshd.server.channel that return ServerSession Modifier and Type Method Description default ServerSession
ServerChannel. getServerSession()
ServerSession
ChannelSession. getSession()
Methods in org.apache.sshd.server.channel with parameters of type ServerSession Modifier and Type Method Description protected RequestHandler.Result
ChannelSession. handleX11ForwardingParsed(java.lang.String requestType, ServerSession session, boolean singleConnection, java.lang.String authProtocol, java.lang.String authCookie, int screenId)
-
Uses of ServerSession in org.apache.sshd.server.command
Fields in org.apache.sshd.server.command declared as ServerSession Modifier and Type Field Description private ServerSession
AbstractCommandSupport. serverSession
Methods in org.apache.sshd.server.command that return ServerSession Modifier and Type Method Description ServerSession
AbstractCommandSupport. getServerSession()
ServerSession
AbstractCommandSupport. getSession()
Methods in org.apache.sshd.server.command with parameters of type ServerSession Modifier and Type Method Description void
AbstractCommandSupport. setSession(ServerSession session)
-
Uses of ServerSession in org.apache.sshd.server.config.keys
Methods in org.apache.sshd.server.config.keys with parameters of type ServerSession Modifier and Type Method Description boolean
AuthorizedKeysAuthenticator. authenticate(java.lang.String username, java.security.PublicKey key, ServerSession session)
protected PublickeyAuthenticator
AuthorizedKeysAuthenticator. createDelegateAuthenticator(java.lang.String username, ServerSession session, java.nio.file.Path path, java.util.Collection<AuthorizedKeyEntry> entries, PublicKeyEntryResolver fallbackResolver)
protected boolean
AuthorizedKeysAuthenticator. isValidUsername(java.lang.String username, ServerSession session)
protected boolean
DefaultAuthorizedKeysAuthenticator. isValidUsername(java.lang.String username, ServerSession session)
protected java.util.Collection<AuthorizedKeyEntry>
AuthorizedKeysAuthenticator. reloadAuthorizedKeys(java.nio.file.Path path, java.lang.String username, ServerSession session)
protected java.util.Collection<AuthorizedKeyEntry>
DefaultAuthorizedKeysAuthenticator. reloadAuthorizedKeys(java.nio.file.Path path, java.lang.String username, ServerSession session)
protected PublickeyAuthenticator
AuthorizedKeysAuthenticator. resolvePublickeyAuthenticator(java.lang.String username, ServerSession session)
-
Uses of ServerSession in org.apache.sshd.server.jaas
Methods in org.apache.sshd.server.jaas with parameters of type ServerSession Modifier and Type Method Description boolean
JaasPasswordAuthenticator. authenticate(java.lang.String username, java.lang.String password, ServerSession session)
-
Uses of ServerSession in org.apache.sshd.server.kex
Methods in org.apache.sshd.server.kex that return ServerSession Modifier and Type Method Description ServerSession
AbstractDHServerKeyExchange. getServerSession()
Methods in org.apache.sshd.server.kex with parameters of type ServerSession Modifier and Type Method Description protected java.util.List<Moduli.DhGroup>
DHGEXServer. loadModuliGroups(ServerSession session)
protected java.util.List<Moduli.DhGroup>
DHGEXServer. selectModuliGroups(ServerSession session, int min, int prf, int max, java.util.List<Moduli.DhGroup> groups)
-
Uses of ServerSession in org.apache.sshd.server.session
Classes in org.apache.sshd.server.session that implement ServerSession Modifier and Type Class Description class
AbstractServerSession
Provides default implementations forServerSession
related methodsclass
ServerSessionImpl
The default implementation for aServerSession
Fields in org.apache.sshd.server.session declared as ServerSession Modifier and Type Field Description private ServerSession
ServerUserAuthService. serverSession
Methods in org.apache.sshd.server.session that return ServerSession Modifier and Type Method Description ServerSession
ServerConnectionService. getServerSession()
ServerSession
ServerSessionHolder. getServerSession()
ServerSession
ServerUserAuthService. getServerSession()
ServerSession
ServerUserAuthService. getSession()
Methods in org.apache.sshd.server.session with parameters of type ServerSession Modifier and Type Method Description boolean
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, java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> authHolder)
protected java.lang.String
ServerUserAuthService. loadWelcomeBanner(ServerSession session, java.net.URL url, java.nio.charset.Charset cs)
protected java.lang.String
ServerUserAuthService. resolveWelcomeBanner(ServerSession session)
IoWriteFuture
ServerUserAuthService. sendWelcomeBanner(ServerSession session)
Sends the welcome banner (if any configured) and if not already invoked -
Uses of ServerSession in org.apache.sshd.server.shell
Fields in org.apache.sshd.server.shell declared as ServerSession Modifier and Type Field Description private ServerSession
ProcessShell. session
Methods in org.apache.sshd.server.shell that return ServerSession Modifier and Type Method Description ServerSession
ProcessShell. getServerSession()
default ServerSession
InvertedShell. getSession()
Methods in org.apache.sshd.server.shell with parameters of type ServerSession Modifier and Type Method Description void
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 ServerSession Modifier and Type Field Description protected ServerSession
SftpSubsystem. serverSession
Methods in org.apache.sshd.sftp.server that return ServerSession Modifier and Type Method Description ServerSession
SftpSubsystem. getServerSession()
default ServerSession
SftpSubsystemEnvironment. getSession()
Methods in org.apache.sshd.sftp.server with parameters of type ServerSession Modifier and Type Method Description protected int
AbstractSftpSubsystemHelper. appendAclSupportedExtension(Buffer buffer, ServerSession session)
protected void
AbstractSftpSubsystemHelper. appendNewlineExtension(Buffer buffer, ServerSession session)
Appends the "newline" extension to the buffer.protected java.util.List<AbstractOpenSSHExtensionParser.OpenSSHExtension>
AbstractSftpSubsystemHelper. appendOpenSSHExtensions(Buffer buffer, ServerSession session)
protected void
AbstractSftpSubsystemHelper. appendVendorIdExtension(Buffer buffer, java.util.Map<java.lang.String,?> versionProperties, ServerSession session)
Appends the "vendor-id" extension to the buffer.protected void
AbstractSftpSubsystemHelper. appendVersionsExtension(Buffer buffer, java.lang.String value, ServerSession session)
Appends the "versions" extension to the buffer.void
AbstractSftpEventListenerAdapter. blocked(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, long length, int mask, java.lang.Throwable thrown)
default void
SftpEventListener. blocked(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, long length, int mask, java.lang.Throwable thrown)
Called after blocking a file sectionvoid
AbstractSftpEventListenerAdapter. blocking(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, long length, int mask)
default void
SftpEventListener. blocking(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, long length, int mask)
Called prior to blocking a file sectiondefault void
SftpEventListener. closed(ServerSession session, java.lang.String remoteHandle, Handle localHandle, java.lang.Throwable thrown)
Specified file / directory has been closeddefault void
SftpFileSystemAccessor. closeDirectory(ServerSession session, SftpSubsystemProxy subsystem, DirectoryHandle dirHandle, java.nio.file.Path dir, java.lang.String handle, java.nio.file.DirectoryStream<java.nio.file.Path> ds)
Called when a directory stream is no longer requireddefault void
SftpFileSystemAccessor. closeFile(ServerSession session, SftpSubsystemProxy subsystem, FileHandle fileHandle, java.nio.file.Path file, java.lang.String handle, java.nio.channels.Channel channel, java.util.Set<? extends java.nio.file.OpenOption> options)
Called to inform the accessor that it should close the filevoid
AbstractSftpEventListenerAdapter. closing(ServerSession session, java.lang.String remoteHandle, Handle localHandle)
default void
SftpEventListener. closing(ServerSession session, java.lang.String remoteHandle, Handle localHandle)
Specified file / directory about to be closeddefault void
SftpFileSystemAccessor. copyFile(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path src, java.nio.file.Path dst, java.util.Collection<java.nio.file.CopyOption> opts)
void
AbstractSftpEventListenerAdapter. created(ServerSession session, java.nio.file.Path path, java.util.Map<java.lang.String,?> attrs, java.lang.Throwable thrown)
default void
SftpEventListener. created(ServerSession session, java.nio.file.Path path, java.util.Map<java.lang.String,?> attrs, java.lang.Throwable thrown)
Called after creating a directorydefault void
SftpFileSystemAccessor. createDirectory(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path path)
default void
SftpFileSystemAccessor. createLink(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path link, java.nio.file.Path existing, boolean symLink)
Invoked in order to create a link to a pathvoid
AbstractSftpEventListenerAdapter. creating(ServerSession session, java.nio.file.Path path, java.util.Map<java.lang.String,?> attrs)
default void
SftpEventListener. creating(ServerSession session, java.nio.file.Path path, java.util.Map<java.lang.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 closeddefault void
SftpEventListener. exiting(ServerSession session, Handle handle)
Called when subsystem is exiting due to being destroyedprotected java.util.Map<java.lang.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 initializedvoid
AbstractSftpEventListenerAdapter. linked(ServerSession session, java.nio.file.Path source, java.nio.file.Path target, boolean symLink, java.lang.Throwable thrown)
default void
SftpEventListener. linked(ServerSession session, java.nio.file.Path source, java.nio.file.Path target, boolean symLink, java.lang.Throwable thrown)
Called after creating a linkvoid
AbstractSftpEventListenerAdapter. linking(ServerSession session, java.nio.file.Path source, java.nio.file.Path target, boolean symLink)
default void
SftpEventListener. linking(ServerSession session, java.nio.file.Path source, java.nio.file.Path target, boolean symLink)
Called prior to creating a linkvoid
AbstractSftpEventListenerAdapter. modifiedAttributes(ServerSession session, java.nio.file.Path path, java.util.Map<java.lang.String,?> attrs, java.lang.Throwable thrown)
default void
SftpEventListener. modifiedAttributes(ServerSession session, java.nio.file.Path path, java.util.Map<java.lang.String,?> attrs, java.lang.Throwable thrown)
Called after modifying the attributes of a file / directoryvoid
AbstractSftpEventListenerAdapter. modifyingAttributes(ServerSession session, java.nio.file.Path path, java.util.Map<java.lang.String,?> attrs)
default void
SftpEventListener. modifyingAttributes(ServerSession session, java.nio.file.Path path, java.util.Map<java.lang.String,?> attrs)
Called prior to modifying the attributes of a file / directoryvoid
AbstractSftpEventListenerAdapter. moved(ServerSession session, java.nio.file.Path srcPath, java.nio.file.Path dstPath, java.util.Collection<java.nio.file.CopyOption> opts, java.lang.Throwable thrown)
default void
SftpEventListener. moved(ServerSession session, java.nio.file.Path srcPath, java.nio.file.Path dstPath, java.util.Collection<java.nio.file.CopyOption> opts, java.lang.Throwable thrown)
Called after renaming a file / directoryvoid
AbstractSftpEventListenerAdapter. moving(ServerSession session, java.nio.file.Path srcPath, java.nio.file.Path dstPath, java.util.Collection<java.nio.file.CopyOption> opts)
default void
SftpEventListener. moving(ServerSession session, java.nio.file.Path srcPath, java.nio.file.Path dstPath, java.util.Collection<java.nio.file.CopyOption> opts)
Called prior to renaming a file / directoryvoid
AbstractSftpEventListenerAdapter. open(ServerSession session, java.lang.String remoteHandle, Handle localHandle)
default void
SftpEventListener. open(ServerSession session, java.lang.String remoteHandle, Handle localHandle)
Specified file / directory has been openeddefault java.nio.file.DirectoryStream<java.nio.file.Path>
SftpFileSystemAccessor. openDirectory(ServerSession session, SftpSubsystemProxy subsystem, DirectoryHandle dirHandle, java.nio.file.Path dir, java.lang.String handle)
Called when a new directory stream is requesteddefault void
SftpEventListener. openFailed(ServerSession session, java.lang.String remotePath, java.nio.file.Path localPath, boolean isDirectory, java.lang.Throwable thrown)
Specified file / directory could not be opened - Note: this call may occur withoutSftpEventListener.opening(ServerSession, String, Handle)
ever having been calleddefault java.nio.channels.SeekableByteChannel
SftpFileSystemAccessor. openFile(ServerSession session, SftpSubsystemProxy subsystem, FileHandle fileHandle, java.nio.file.Path file, java.lang.String handle, java.util.Set<? extends java.nio.file.OpenOption> options, java.nio.file.attribute.FileAttribute<?>... attrs)
Called whenever a new file is openedvoid
AbstractSftpEventListenerAdapter. opening(ServerSession session, java.lang.String remoteHandle, Handle localHandle)
default void
SftpEventListener. opening(ServerSession session, java.lang.String remoteHandle, Handle localHandle)
Specified file / directory is being openedvoid
AbstractSftpEventListenerAdapter. read(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, int readLen, java.lang.Throwable thrown)
default void
SftpEventListener. read(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, int readLen, java.lang.Throwable thrown)
Result of reading from a filevoid
AbstractSftpEventListenerAdapter. readEntries(ServerSession session, java.lang.String remoteHandle, DirectoryHandle localHandle, java.util.Map<java.lang.String,java.nio.file.Path> entries)
default void
SftpEventListener. readEntries(ServerSession session, java.lang.String remoteHandle, DirectoryHandle localHandle, java.util.Map<java.lang.String,java.nio.file.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 responsedefault java.util.Map<java.lang.String,?>
SftpFileSystemAccessor. readFileAttributes(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path file, java.lang.String view, java.nio.file.LinkOption... options)
Invoked when required to retrieve file attributes for a specific file system viewvoid
AbstractSftpEventListenerAdapter. reading(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen)
default void
SftpEventListener. reading(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen)
Preparing to read from a filedefault void
SftpEventListener. readingEntries(ServerSession session, java.lang.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.default void
SftpEventListener. receivedExtension(ServerSession session, java.lang.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, java.nio.file.Path path, boolean isDirectory, java.lang.Throwable thrown)
default void
SftpEventListener. removed(ServerSession session, java.nio.file.Path path, boolean isDirectory, java.lang.Throwable thrown)
Called after a file has been removeddefault void
SftpFileSystemAccessor. removeFile(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path path, boolean isDirectory)
void
AbstractSftpEventListenerAdapter. removing(ServerSession session, java.nio.file.Path path, boolean isDirectory)
default void
SftpEventListener. removing(ServerSession session, java.nio.file.Path path, boolean isDirectory)
Called prior to removing a filedefault void
SftpFileSystemAccessor. renameFile(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path oldPath, java.nio.file.Path newPath, java.util.Collection<java.nio.file.CopyOption> opts)
protected java.util.Collection<java.lang.Integer>
AbstractSftpSubsystemHelper. resolveAclSupportedCapabilities(ServerSession session)
default java.nio.file.attribute.UserPrincipal
SftpFileSystemAccessor. resolveFileOwner(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path file, java.nio.file.attribute.UserPrincipal name)
default java.nio.file.attribute.GroupPrincipal
SftpFileSystemAccessor. resolveGroupOwner(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path file, java.nio.file.attribute.GroupPrincipal name)
default java.lang.String
SftpFileSystemAccessor. resolveLinkTarget(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path link)
default java.nio.file.Path
SftpFileSystemAccessor. resolveLocalFilePath(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path rootDir, java.lang.String remotePath)
Invoked in order to resolve remote file paths reference by the client into ones accessible by the serverprotected java.lang.String
AbstractSftpSubsystemHelper. resolveNewlineValue(ServerSession session)
protected java.util.List<AbstractOpenSSHExtensionParser.OpenSSHExtension>
AbstractSftpSubsystemHelper. resolveOpenSSHExtensions(ServerSession session)
default void
SftpFileSystemAccessor. setFileAccessControl(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path file, java.util.List<java.nio.file.attribute.AclEntry> acl, java.nio.file.LinkOption... options)
default void
SftpFileSystemAccessor. setFileAttribute(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path file, java.lang.String view, java.lang.String attribute, java.lang.Object value, java.nio.file.LinkOption... options)
Sets a view attribute for a local filedefault void
SftpFileSystemAccessor. setFileOwner(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path file, java.security.Principal value, java.nio.file.LinkOption... options)
default void
SftpFileSystemAccessor. setFilePermissions(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path file, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms, java.nio.file.LinkOption... options)
default void
SftpFileSystemAccessor. setGroupOwner(ServerSession session, SftpSubsystemProxy subsystem, java.nio.file.Path file, java.security.Principal value, java.nio.file.LinkOption... options)
void
SftpSubsystem. setSession(ServerSession session)
default void
SftpFileSystemAccessor. syncFileData(ServerSession session, SftpSubsystemProxy subsystem, FileHandle fileHandle, java.nio.file.Path file, java.lang.String handle, java.nio.channels.Channel channel)
Called when file meta-data re-synchronization is requireddefault java.nio.channels.FileLock
SftpFileSystemAccessor. tryLock(ServerSession session, SftpSubsystemProxy subsystem, FileHandle fileHandle, java.nio.file.Path file, java.lang.String handle, java.nio.channels.Channel channel, long position, long size, boolean shared)
Called when locking a section of a file is requestedvoid
AbstractSftpEventListenerAdapter. unblocked(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, long length, java.lang.Throwable thrown)
default void
SftpEventListener. unblocked(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, long length, java.lang.Throwable thrown)
Called prior to un-blocking a file sectionvoid
AbstractSftpEventListenerAdapter. unblocking(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, long length)
default void
SftpEventListener. unblocking(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, long length)
Called prior to un-blocking a file sectionvoid
AbstractSftpEventListenerAdapter. writing(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen)
default void
SftpEventListener. writing(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen)
Preparing to write to filevoid
AbstractSftpEventListenerAdapter. written(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, java.lang.Throwable thrown)
default void
SftpEventListener. written(ServerSession session, java.lang.String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, java.lang.Throwable thrown)
Finished to writing to file
-