Modifier and Type | Method and Description |
---|---|
protected void |
SshClient.setupDefaultSessionIdentities(ClientSession session,
KeyIdentityProvider extraIdentities) |
Modifier and Type | Method and Description |
---|---|
ClientSession |
AbstractUserAuth.getClientSession() |
ClientSession |
AbstractUserAuth.getSession() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractUserAuth.init(ClientSession session,
String service) |
void |
UserAuth.init(ClientSession session,
String service) |
protected abstract boolean |
AbstractUserAuth.processAuthDataRequest(ClientSession session,
String service,
Buffer buffer) |
protected abstract boolean |
AbstractUserAuth.sendAuthDataRequest(ClientSession session,
String service) |
Modifier and Type | Method and Description |
---|---|
protected void |
UserAuthHostBased.appendSignature(ClientSession session,
String service,
String keyType,
PublicKey key,
byte[] keyBytes,
String clientHostname,
String clientUsername,
Signature verifier,
Buffer buffer) |
void |
UserAuthHostBased.init(ClientSession session,
String service) |
protected boolean |
UserAuthHostBased.processAuthDataRequest(ClientSession session,
String service,
Buffer buffer) |
protected boolean |
UserAuthHostBased.sendAuthDataRequest(ClientSession session,
String service) |
Modifier and Type | Method and Description |
---|---|
protected String |
UserAuthKeyboardInteractive.getExchangeLanguageTag(ClientSession session) |
protected String |
UserAuthKeyboardInteractive.getExchangeSubMethods(ClientSession session) |
String |
UserInteraction.getUpdatedPassword(ClientSession session,
String prompt,
String lang)
Invoked when the server returns an
SSH_MSG_USERAUTH_PASSWD_CHANGEREQ
response indicating that the password should be changed - e.g., expired or
not strong enough (as per the server's policy). |
void |
UserAuthKeyboardInteractive.init(ClientSession session,
String service) |
String[] |
UserInteraction.interactive(ClientSession session,
String name,
String instruction,
String lang,
String[] prompt,
boolean[] echo)
Invoked when "keyboard-interactive" authentication mechanism
is used in order to provide responses for the server's challenges
(a.k.a.
|
default boolean |
UserInteraction.isInteractionAllowed(ClientSession session) |
protected boolean |
UserAuthKeyboardInteractive.processAuthDataRequest(ClientSession session,
String service,
Buffer buffer) |
protected boolean |
UserAuthKeyboardInteractive.sendAuthDataRequest(ClientSession session,
String service) |
default void |
UserInteraction.serverVersionInfo(ClientSession session,
List<String> lines)
Called if the server sent any extra information beyond the standard
version line
|
protected boolean |
UserAuthKeyboardInteractive.verifyTrialsCount(ClientSession session,
String service,
int cmd,
int nbTrials,
int maxAllowed) |
default void |
UserInteraction.welcome(ClientSession session,
String banner,
String lang)
Displays the welcome banner to the user.
|
Modifier and Type | Method and Description |
---|---|
void |
UserAuthPassword.init(ClientSession session,
String service) |
protected boolean |
UserAuthPassword.processAuthDataRequest(ClientSession session,
String service,
Buffer buffer) |
protected boolean |
UserAuthPassword.sendAuthDataRequest(ClientSession session,
String service) |
protected IoWriteFuture |
UserAuthPassword.sendPassword(Buffer buffer,
ClientSession session,
String oldPassword,
String newPassword)
Sends the password via a
SSH_MSG_USERAUTH_REQUEST message. |
Modifier and Type | Method and Description |
---|---|
ClientSession |
AbstractKeyPairIterator.getClientSession() |
ClientSession |
AbstractKeyPairIterator.getSession() |
Modifier and Type | Method and Description |
---|---|
protected void |
UserAuthPublicKey.appendSignature(ClientSession session,
String service,
String name,
String username,
String algo,
PublicKey key,
Buffer buffer) |
void |
UserAuthPublicKey.init(ClientSession session,
String service) |
protected Iterable<KeyAgentIdentity> |
UserAuthPublicKeyIterator.initializeAgentIdentities(ClientSession session) |
protected Iterable<KeyPairIdentity> |
UserAuthPublicKeyIterator.initializeSessionIdentities(ClientSession session,
SignatureFactoriesManager signatureFactories) |
protected boolean |
UserAuthPublicKey.processAuthDataRequest(ClientSession session,
String service,
Buffer buffer) |
protected boolean |
UserAuthPublicKey.sendAuthDataRequest(ClientSession session,
String service) |
Constructor and Description |
---|
AbstractKeyPairIterator(ClientSession session) |
SessionKeyPairIterator(ClientSession session,
SignatureFactoriesManager signatureFactories,
Iterator<KeyPair> keys) |
SshAgentPublicKeyIterator(ClientSession session,
SshAgent agent) |
UserAuthPublicKeyIterator(ClientSession session,
SignatureFactoriesManager signatureFactories) |
Modifier and Type | Method and Description |
---|---|
ClientSession |
AbstractClientChannel.getClientSession() |
Modifier and Type | Method and Description |
---|---|
ClientSession |
DefaultConnectFuture.getSession() |
ClientSession |
ConnectFuture.getSession() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultConnectFuture.setSession(ClientSession session) |
void |
ConnectFuture.setSession(ClientSession session)
Sets the newly connected session and notifies all threads waiting for
this future.
|
Modifier and Type | Method and Description |
---|---|
ClientSession |
AbstractDHClientKeyExchange.getClientSession() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
KnownHostsServerKeyVerifier.acceptIncompleteHostKeys(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey,
Throwable reason)
Called if failed to reload known hosts - by default invokes
KnownHostsServerKeyVerifier.acceptUnknownHostKey(ClientSession, SocketAddress, PublicKey) |
protected boolean |
KnownHostsServerKeyVerifier.acceptKnownHostEntries(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey,
Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts) |
protected boolean |
KnownHostsServerKeyVerifier.acceptKnownHostEntry(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey,
KnownHostEntry entry)
Invoked after known host entry located and keys match - by default
checks that entry has not been revoked
|
boolean |
ModifiedServerKeyAcceptor.acceptModifiedServerKey(ClientSession clientSession,
SocketAddress remoteAddress,
KnownHostEntry entry,
PublicKey expected,
PublicKey actual)
Invoked when a matching known host key was found but it does not match
the presented one.
|
boolean |
KnownHostsServerKeyVerifier.acceptModifiedServerKey(ClientSession clientSession,
SocketAddress remoteAddress,
KnownHostEntry entry,
PublicKey expected,
PublicKey actual) |
protected boolean |
KnownHostsServerKeyVerifier.acceptUnknownHostKey(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey)
Invoked if none of the known hosts matches the current one - by default invokes the delegate.
|
protected KnownHostsServerKeyVerifier.HostEntryPair |
KnownHostsServerKeyVerifier.findKnownHostEntry(ClientSession clientSession,
SocketAddress remoteAddress,
Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts) |
protected NamedFactory<Mac> |
KnownHostsServerKeyVerifier.getHostValueDigester(ClientSession clientSession,
SocketAddress remoteAddress,
SshdSocketAddress hostIdentity)
Invoked by
KnownHostsServerKeyVerifier.prepareKnownHostEntry(ClientSession, SocketAddress, PublicKey)
in order to query whether to use a hashed value instead of a plain one for the
written host name/address - default returns null - i.e., no hashing |
protected void |
StaticServerKeyVerifier.handleAcceptance(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey) |
protected void |
KnownHostsServerKeyVerifier.handleKnownHostsFileUpdateFailure(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey,
Path file,
Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts,
Throwable reason)
Invoked when
KnownHostsServerKeyVerifier.updateKnownHostsFile(ClientSession, SocketAddress, PublicKey, Path, Collection) fails - by
default just issues a warning. |
protected void |
KnownHostsServerKeyVerifier.handleModifiedServerKeyUpdateFailure(ClientSession clientSession,
SocketAddress remoteAddress,
KnownHostsServerKeyVerifier.HostEntryPair match,
PublicKey serverKey,
Path file,
Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts,
Throwable reason)
Invoked if
#updateModifiedServerKey(ClientSession, SocketAddress, HostEntryPair, PublicKey, Path)
throws an exception. |
protected void |
StaticServerKeyVerifier.handleRejection(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey) |
protected KnownHostEntry |
KnownHostsServerKeyVerifier.prepareKnownHostEntry(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey)
Invoked by
KnownHostsServerKeyVerifier.updateKnownHostsFile(ClientSession, SocketAddress, PublicKey, Path, Collection)
in order to generate the host entry to be written |
protected String |
KnownHostsServerKeyVerifier.prepareModifiedServerKeyLine(ClientSession clientSession,
SocketAddress remoteAddress,
KnownHostEntry entry,
String curLine,
PublicKey expected,
PublicKey actual)
Invoked by
KnownHostsServerKeyVerifier.updateModifiedServerKey(ClientSession, SocketAddress, HostEntryPair, PublicKey, Path, Collection)
in order to prepare the replacement - by default it replaces the key part with the new one |
protected List<KnownHostsServerKeyVerifier.HostEntryPair> |
DefaultKnownHostsServerKeyVerifier.reloadKnownHosts(ClientSession session,
Path file) |
protected List<KnownHostsServerKeyVerifier.HostEntryPair> |
KnownHostsServerKeyVerifier.reloadKnownHosts(ClientSession session,
Path file) |
protected PublicKey |
KnownHostsServerKeyVerifier.resolveHostKey(ClientSession session,
KnownHostEntry entry,
PublicKeyEntryResolver resolver)
Recover the associated public key from a known host entry
|
protected Collection<SshdSocketAddress> |
KnownHostsServerKeyVerifier.resolveHostNetworkIdentities(ClientSession clientSession,
SocketAddress remoteAddress)
Retrieves the host identities to be used when matching or updating an entry
for it - by default returns the reported remote address and the original
connection target host name/address (if same, then only one value is returned)
|
protected KnownHostEntry |
KnownHostsServerKeyVerifier.updateKnownHostsFile(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey,
Path file,
Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts)
Invoked if a new previously unknown host key has been accepted - by default
appends a new entry at the end of the currently monitored known hosts file
|
protected void |
KnownHostsServerKeyVerifier.updateModifiedServerKey(ClientSession clientSession,
SocketAddress remoteAddress,
KnownHostsServerKeyVerifier.HostEntryPair match,
PublicKey actual,
Path file,
Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts)
Invoked if a matching host entry was found, but the key did not match and
KnownHostsServerKeyVerifier.acceptModifiedServerKey(ClientSession, SocketAddress, KnownHostEntry, PublicKey, PublicKey)
returned true . |
boolean |
ServerKeyVerifier.verifyServerKey(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey)
Verify that the server key provided is really the one of the host.
|
boolean |
RequiredServerKeyVerifier.verifyServerKey(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey) |
boolean |
StaticServerKeyVerifier.verifyServerKey(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey) |
boolean |
KnownHostsServerKeyVerifier.verifyServerKey(ClientSession clientSession,
SocketAddress remoteAddress,
PublicKey serverKey) |
boolean |
DelegatingServerKeyVerifier.verifyServerKey(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey) |
Modifier and Type | Method and Description |
---|---|
ClientSession |
DefaultScpClient.getClientSession() |
ClientSession |
AbstractScpClient.getSession() |
Modifier and Type | Method and Description |
---|---|
default ScpClient |
ScpClientCreator.createScpClient(ClientSession session)
Create an SCP client from this session.
|
protected CloseableScpClient |
SimpleScpClientImpl.createScpClient(ClientSession session) |
protected CloseableScpClient |
SimpleScpClientImpl.createScpClient(ClientSession session,
ScpClient client) |
default ScpClient |
ScpClientCreator.createScpClient(ClientSession session,
ScpFileOpener opener)
Create an SCP client from this session.
|
ScpClient |
ScpClientCreator.createScpClient(ClientSession session,
ScpFileOpener opener,
ScpTransferEventListener listener)
Create an SCP client from this session.
|
ScpClient |
DefaultScpClientCreator.createScpClient(ClientSession session,
ScpFileOpener opener,
ScpTransferEventListener listener) |
default ScpClient |
ScpClientCreator.createScpClient(ClientSession session,
ScpTransferEventListener listener)
Create an SCP client from this session.
|
protected ChannelExec |
AbstractScpClient.openCommandChannel(ClientSession session,
String cmd) |
Modifier and Type | Method and Description |
---|---|
protected CloseableScpClient |
SimpleScpClientImpl.createScpClient(IOFunction<? super SimpleClient,? extends ClientSession> sessionProvider) |
Constructor and Description |
---|
DefaultScpClient(ClientSession clientSession,
ScpFileOpener fileOpener,
ScpTransferEventListener eventListener) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractClientSession
Provides default implementations of
ClientSession related methods |
class |
ClientSessionImpl
The default implementation of a
ClientSession |
Modifier and Type | Method and Description |
---|---|
ClientSession |
ClientUserAuthService.getClientSession() |
ClientSession |
ClientSessionHolder.getClientSession() |
ClientSession |
ClientConnectionService.getClientSession() |
ClientSession |
ClientUserAuthService.getSession() |
Modifier and Type | Method and Description |
---|---|
static Iterator<String> |
ClientSession.passwordIteratorOf(ClientSession session)
Creates a "unified"
Iterator of passwords out of the registered
passwords and the extra available ones as a single iterator of passwords |
static KeyIdentityProvider |
ClientSession.providerOf(ClientSession session)
Creates a "unified"
KeyIdentityProvider of key pairs out of the registered
KeyPair identities and the extra available ones as a single iterator
of key pairs |
void |
ClientProxyConnector.sendClientProxyMetadata(ClientSession session)
Invoked just before the client identification is sent so that the
proxy can send the meta-data to its peer.
|
Modifier and Type | Method and Description |
---|---|
ClientSession |
PortForwardingTracker.getClientSession() |
Constructor and Description |
---|
DynamicPortForwardingTracker(ClientSession session,
SshdSocketAddress localAddress,
SshdSocketAddress boundAddress) |
ExplicitPortForwardingTracker(ClientSession session,
boolean localForwarding,
SshdSocketAddress localAddress,
SshdSocketAddress remoteAddress,
SshdSocketAddress boundAddress) |
PortForwardingTracker(ClientSession session,
SshdSocketAddress localAddress,
SshdSocketAddress boundAddress) |
Modifier and Type | Method and Description |
---|---|
protected ClientSession |
AbstractSimpleClientSessionCreator.authSession(ClientSession clientSession) |
protected ClientSession |
AbstractSimpleClientSessionCreator.authSession(ConnectFuture future,
KeyPair identity) |
protected ClientSession |
AbstractSimpleClientSessionCreator.authSession(ConnectFuture future,
String password) |
protected ClientSession |
AbstractSimpleClientSessionCreator.loginSession(ConnectFuture future,
KeyPair identity) |
protected ClientSession |
AbstractSimpleClientSessionCreator.loginSession(ConnectFuture future,
String password) |
default ClientSession |
SimpleSessionClient.sessionLogin(InetAddress host,
int port,
String username,
KeyPair identity)
Creates a session and logs in using the provided credentials
|
default ClientSession |
SimpleSessionClient.sessionLogin(InetAddress host,
int port,
String username,
String password)
Creates a session and logs in using the provided credentials
|
default ClientSession |
SimpleSessionClient.sessionLogin(InetAddress host,
String username,
KeyPair identity)
Creates a session on the default port and logs in using the provided credentials
|
default ClientSession |
SimpleSessionClient.sessionLogin(InetAddress host,
String username,
String password)
Creates a session on the default port and logs in using the provided credentials
|
ClientSession |
AbstractSimpleClientSessionCreator.sessionLogin(SocketAddress target,
String username,
KeyPair identity) |
ClientSession |
SimpleSessionClient.sessionLogin(SocketAddress target,
String username,
KeyPair identity)
Creates a session and logs in using the provided credentials
|
ClientSession |
AbstractSimpleClientSessionCreator.sessionLogin(SocketAddress target,
String username,
String password) |
ClientSession |
SimpleSessionClient.sessionLogin(SocketAddress target,
String username,
String password)
Creates a session and logs in using the provided credentials
|
default ClientSession |
SimpleSessionClient.sessionLogin(String host,
int port,
String username,
KeyPair identity)
Creates a session and logs in using the provided credentials
|
default ClientSession |
SimpleSessionClient.sessionLogin(String host,
int port,
String username,
String password)
Creates a session and logs in using the provided credentials
|
default ClientSession |
SimpleSessionClient.sessionLogin(String host,
String username,
KeyPair identity)
Creates a session on the default port and logs in using the provided credentials
|
default ClientSession |
SimpleSessionClient.sessionLogin(String host,
String username,
String password)
Creates a session on the default port and logs in using the provided credentials
|
Modifier and Type | Method and Description |
---|---|
protected ClientSession |
AbstractSimpleClientSessionCreator.authSession(ClientSession clientSession) |
Modifier and Type | Method and Description |
---|---|
ClientSession |
AbstractSubsystemClient.getSession() |
Modifier and Type | Method and Description |
---|---|
default SftpClient |
SftpClientFactory.createSftpClient(ClientSession session)
Create an SFTP client from this session.
|
default SftpClient |
SftpClientFactory.createSftpClient(ClientSession session,
int version)
Creates an SFTP client using the specified version
|
SftpClient |
SftpClientFactory.createSftpClient(ClientSession session,
SftpVersionSelector selector) |
default SftpFileSystem |
SftpClientFactory.createSftpFileSystem(ClientSession session) |
default SftpFileSystem |
SftpClientFactory.createSftpFileSystem(ClientSession session,
int version) |
default SftpFileSystem |
SftpClientFactory.createSftpFileSystem(ClientSession session,
int readBufferSize,
int writeBufferSize) |
default SftpFileSystem |
SftpClientFactory.createSftpFileSystem(ClientSession session,
int version,
int readBufferSize,
int writeBufferSize) |
default SftpFileSystem |
SftpClientFactory.createSftpFileSystem(ClientSession session,
SftpVersionSelector selector) |
SftpFileSystem |
SftpClientFactory.createSftpFileSystem(ClientSession session,
SftpVersionSelector selector,
int readBufferSize,
int writeBufferSize) |
int |
SftpVersionSelector.selectVersion(ClientSession session,
int current,
List<Integer> available) |
int |
SftpVersionSelector.NamedVersionSelector.selectVersion(ClientSession session,
int current,
List<Integer> available) |
Modifier and Type | Method and Description |
---|---|
default ClientSession |
SftpFileSystemClientSessionInitializer.createClientSession(SftpFileSystemProvider provider,
SftpFileSystemInitializationContext context)
Invoked by the
SftpFileSystemProvider.newFileSystem(java.net.URI, Map) method
in order to obtain an initial (non-authenticated) ClientSession . |
ClientSession |
SftpFileSystem.getClientSession() |
Constructor and Description |
---|
SftpFileSystem(SftpFileSystemProvider provider,
String id,
ClientSession session,
SftpClientFactory factory,
SftpVersionSelector selector) |
Modifier and Type | Method and Description |
---|---|
ClientSession |
DefaultSftpClient.getClientSession() |
Modifier and Type | Method and Description |
---|---|
protected DefaultSftpClient |
DefaultSftpClientFactory.createDefaultSftpClient(ClientSession session,
SftpVersionSelector selector) |
protected SftpClient |
SimpleSftpClientImpl.createSftpClient(ClientSession session) |
protected SftpClient |
SimpleSftpClientImpl.createSftpClient(ClientSession session,
SftpClient client) |
SftpClient |
DefaultSftpClientFactory.createSftpClient(ClientSession session,
SftpVersionSelector selector) |
SftpFileSystem |
DefaultSftpClientFactory.createSftpFileSystem(ClientSession session,
SftpVersionSelector selector,
int readBufferSize,
int writeBufferSize) |
Modifier and Type | Method and Description |
---|---|
protected SftpClient |
SimpleSftpClientImpl.createSftpClient(IOFunction<? super SimpleClient,? extends ClientSession> sessionProvider) |
Constructor and Description |
---|
DefaultSftpClient(ClientSession clientSession) |
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.