Modifier and Type | Method and Description |
---|---|
void |
SessionAware.setSession(ServerSession session) |
Modifier and Type | Field and Description |
---|---|
private ServerSession |
AbstractUserAuth.session |
Modifier and Type | Method and Description |
---|---|
ServerSession |
AbstractUserAuth.getServerSession() |
ServerSession |
AbstractUserAuth.getSession() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
UserAuth.auth(ServerSession session,
java.lang.String username,
java.lang.String service,
Buffer buffer)
Try to authenticate the user.
|
java.lang.Boolean |
AbstractUserAuth.auth(ServerSession session,
java.lang.String username,
java.lang.String service,
Buffer buffer) |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and 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) |
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) |
Modifier and Type | Method and Description |
---|---|
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 previously
|
boolean |
DefaultKeyboardInteractiveAuthenticator.authenticate(ServerSession session,
java.lang.String username,
java.util.List<java.lang.String> responses) |
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 |
KeyboardInteractiveAuthenticator.generateChallenge(ServerSession session,
java.lang.String username,
java.lang.String lang,
java.lang.String subMethods)
Generates the interactive "challenge" to send to the client
|
InteractiveChallenge |
DefaultKeyboardInteractiveAuthenticator.generateChallenge(ServerSession session,
java.lang.String username,
java.lang.String lang,
java.lang.String subMethods) |
protected 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) |
Modifier and Type | Method and 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 configured
PasswordAuthenticator and returns the result. |
protected void |
StaticPasswordAuthenticator.handleAcceptance(java.lang.String username,
java.lang.String password,
ServerSession session) |
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 a
SSH_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 by
UserAuthPassword.checkPassword(Buffer, ServerSession, String, String)
when a PasswordChangeRequiredException was thrown by the authenticator. |
Modifier and Type | Method and Description |
---|---|
boolean |
StaticPublickeyAuthenticator.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 |
PublickeyAuthenticator.authenticate(java.lang.String username,
java.security.PublicKey key,
ServerSession session)
Check the validity of a public key.
|
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) |
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) |
Modifier and Type | Method and Description |
---|---|
ServerSession |
AbstractServerChannel.getServerSession() |
ServerSession |
ChannelSession.getSession() |
Modifier and Type | Field and Description |
---|---|
protected ServerSession |
AbstractCommandSupport.serverSession |
Modifier and Type | Method and Description |
---|---|
ServerSession |
AbstractCommandSupport.getServerSession() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractCommandSupport.setSession(ServerSession session) |
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
boolean |
JaasPasswordAuthenticator.authenticate(java.lang.String username,
java.lang.String password,
ServerSession session) |
Modifier and Type | Method and Description |
---|---|
ServerSession |
AbstractDHServerKeyExchange.getServerSession() |
Modifier and Type | Class and Description |
---|---|
class |
AbstractServerSession
Provides default implementations for
ServerSession related methods |
class |
ServerSessionImpl
The default implementation for a
ServerSession |
Modifier and Type | Field and Description |
---|---|
private ServerSession |
ServerUserAuthService.serverSession |
Modifier and Type | Method and Description |
---|---|
ServerSession |
ServerSessionHolder.getServerSession() |
ServerSession |
ServerConnectionService.getServerSession() |
ServerSession |
ServerUserAuthService.getServerSession() |
ServerSession |
ServerUserAuthService.getSession() |
Modifier and Type | Method and 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 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
|
Modifier and Type | Field and Description |
---|---|
private ServerSession |
ProcessShell.session |
Modifier and Type | Method and Description |
---|---|
ServerSession |
ProcessShell.getServerSession() |
Modifier and Type | Method and Description |
---|---|
void |
ProcessShell.setSession(ServerSession session) |
void |
InvertedShellWrapper.setSession(ServerSession session) |
Modifier and Type | Field and Description |
---|---|
protected ServerSession |
SftpSubsystem.serverSession |
Modifier and Type | Method and Description |
---|---|
ServerSession |
SftpSubsystem.getServerSession() |
Modifier and Type | Method and Description |
---|---|
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 section
|
void |
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 section
|
default void |
SftpEventListener.closed(ServerSession session,
java.lang.String remoteHandle,
Handle localHandle,
java.lang.Throwable thrown)
Specified file / directory has been closed
|
void |
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 closed
|
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 directory
|
void |
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 directory
|
void |
AbstractSftpEventListenerAdapter.destroying(ServerSession session) |
default void |
SftpEventListener.destroying(ServerSession session)
Called when subsystem is destroyed since it was closed
|
void |
AbstractSftpEventListenerAdapter.initialized(ServerSession session,
int version) |
default void |
SftpEventListener.initialized(ServerSession session,
int version)
Called when the SFTP protocol has been initialized
|
void |
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 link
|
void |
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 link
|
void |
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 / directory
|
void |
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 / directory
|
void |
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 / directory
|
void |
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 / directory
|
void |
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 opened
|
default java.nio.file.DirectoryStream<java.nio.file.Path> |
SftpFileSystemAccessor.openDirectory(ServerSession session,
SftpEventListenerManager subsystem,
java.nio.file.Path dir,
java.lang.String handle)
Called when a new directory stream is requested
|
default 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
without
SftpEventListener.opening(ServerSession, String, Handle) ever having been called |
default java.nio.channels.SeekableByteChannel |
SftpFileSystemAccessor.openFile(ServerSession session,
SftpEventListenerManager subsystem,
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 opened
|
void |
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 opened
|
void |
AbstractSftpEventListenerAdapter.read(ServerSession session,
java.lang.String remoteHandle,
DirectoryHandle localHandle,
java.util.Map<java.lang.String,java.nio.file.Path> entries) |
default void |
SftpEventListener.read(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 response
|
void |
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 file
|
void |
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 file
|
void |
AbstractSftpEventListenerAdapter.removed(ServerSession session,
java.nio.file.Path path,
java.lang.Throwable thrown) |
default void |
SftpEventListener.removed(ServerSession session,
java.nio.file.Path path,
java.lang.Throwable thrown)
Called after a file / directory has been removed
|
void |
AbstractSftpEventListenerAdapter.removing(ServerSession session,
java.nio.file.Path path) |
default void |
SftpEventListener.removing(ServerSession session,
java.nio.file.Path path)
Called prior to removing a file / directory
|
protected java.util.Collection<java.lang.Integer> |
AbstractSftpSubsystemHelper.resolveAclSupportedCapabilities(ServerSession session) |
protected java.lang.String |
AbstractSftpSubsystemHelper.resolveNewlineValue(ServerSession session) |
protected java.util.List<AbstractOpenSSHExtensionParser.OpenSSHExtension> |
AbstractSftpSubsystemHelper.resolveOpenSSHExtensions(ServerSession session) |
void |
SftpSubsystem.setSession(ServerSession session) |
default void |
SftpFileSystemAccessor.syncFileData(ServerSession session,
SftpEventListenerManager subsystem,
java.nio.file.Path file,
java.lang.String handle,
java.nio.channels.Channel channel)
Called when file meta-data re-synchronization is required
|
default java.nio.channels.FileLock |
SftpFileSystemAccessor.tryLock(ServerSession session,
SftpEventListenerManager subsystem,
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 requested
|
void |
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 section
|
void |
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 section
|
void |
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 file
|
void |
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
|