Uses of Interface
org.apache.sshd.client.session.ClientSession
-
-
Uses of ClientSession in org.apache.sshd.client
Methods in org.apache.sshd.client with parameters of type ClientSession Modifier and Type Method Description protected voidSshClient. setupDefaultSessionIdentities(ClientSession session, KeyIdentityProvider extraIdentities) -
Uses of ClientSession in org.apache.sshd.client.auth
Fields in org.apache.sshd.client.auth declared as ClientSession Modifier and Type Field Description private ClientSessionAbstractUserAuth. clientSessionMethods in org.apache.sshd.client.auth that return ClientSession Modifier and Type Method Description ClientSessionAbstractUserAuth. getClientSession()ClientSessionAbstractUserAuth. getSession()Methods in org.apache.sshd.client.auth with parameters of type ClientSession Modifier and Type Method Description voidAbstractUserAuth. init(ClientSession session, java.lang.String service)voidUserAuth. init(ClientSession session, java.lang.String service)protected abstract booleanAbstractUserAuth. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)protected abstract booleanAbstractUserAuth. sendAuthDataRequest(ClientSession session, java.lang.String service)default voidUserAuth. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)Signals reception ofSSH_MSG_USERAUTH_FAILUREmessagedefault voidUserAuth. signalAuthMethodSuccess(ClientSession session, java.lang.String service, Buffer buffer)Signal reception ofSSH_MSG_USERAUTH_SUCCESSmessage -
Uses of ClientSession in org.apache.sshd.client.auth.hostbased
Methods in org.apache.sshd.client.auth.hostbased with parameters of type ClientSession Modifier and Type Method Description protected byte[]UserAuthHostBased. appendSignature(ClientSession session, java.lang.String service, java.lang.String keyType, java.security.PublicKey key, byte[] keyBytes, java.lang.String clientHostname, java.lang.String clientUsername, Signature verifier, Buffer buffer)UserAuthHostBasedUserAuthHostBasedFactory. createUserAuth(ClientSession session)voidUserAuthHostBased. init(ClientSession session, java.lang.String service)protected booleanUserAuthHostBased. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)protected java.lang.StringUserAuthHostBased. resolveClientHostname(ClientSession session)protected java.lang.StringUserAuthHostBased. resolveClientUsername(ClientSession session)protected booleanUserAuthHostBased. sendAuthDataRequest(ClientSession session, java.lang.String service)default voidHostBasedAuthenticationReporter. signalAuthenticationAttempt(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String hostname, java.lang.String username, byte[] signature)Sending the initial request to use host based authenticationdefault voidHostBasedAuthenticationReporter. signalAuthenticationExhausted(ClientSession session, java.lang.String service, java.lang.String hostname, java.lang.String username)Signals end of host based attempts and optionally switching to other authentication methods.default voidHostBasedAuthenticationReporter. signalAuthenticationFailure(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String hostname, java.lang.String username, boolean partial, java.util.List<java.lang.String> serverMethods)default voidHostBasedAuthenticationReporter. signalAuthenticationSuccess(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String hostname, java.lang.String username)voidUserAuthHostBased. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)voidUserAuthHostBased. signalAuthMethodSuccess(ClientSession session, java.lang.String service, Buffer buffer) -
Uses of ClientSession in org.apache.sshd.client.auth.keyboard
Methods in org.apache.sshd.client.auth.keyboard with parameters of type ClientSession Modifier and Type Method Description UserAuthKeyboardInteractiveUserAuthKeyboardInteractiveFactory. createUserAuth(ClientSession session)protected java.lang.StringUserAuthKeyboardInteractive. getExchangeLanguageTag(ClientSession session)protected java.lang.StringUserAuthKeyboardInteractive. getExchangeSubMethods(ClientSession session)java.lang.StringUserInteraction. getUpdatedPassword(ClientSession session, java.lang.String prompt, java.lang.String lang)Invoked when the server returns anSSH_MSG_USERAUTH_PASSWD_CHANGEREQresponse indicating that the password should be changed - e.g., expired or not strong enough (as per the server's policy).voidUserAuthKeyboardInteractive. init(ClientSession session, java.lang.String service)java.lang.String[]UserInteraction. interactive(ClientSession session, java.lang.String name, java.lang.String instruction, java.lang.String lang, java.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 booleanUserInteraction. isInteractionAllowed(ClientSession session)protected booleanUserAuthKeyboardInteractive. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)default java.lang.StringUserInteraction. resolveAuthPasswordAttempt(ClientSession session)Invoked during password authentication when no more pre-registered passwords are availabledefault java.security.KeyPairUserInteraction. resolveAuthPublicKeyIdentityAttempt(ClientSession session)Invoked during public key authentication when no more pre-registered keys are availableprotected booleanUserAuthKeyboardInteractive. sendAuthDataRequest(ClientSession session, java.lang.String service)default voidUserInteraction. serverVersionInfo(ClientSession session, java.util.List<java.lang.String> lines)Called if the server sent any extra information beyond the standard version lineprotected booleanUserAuthKeyboardInteractive. useCurrentPassword(ClientSession session, java.lang.String password, java.lang.String name, java.lang.String instruction, java.lang.String lang, java.lang.String[] prompt, boolean[] echo)Checks if we have a candidate password and exactly one prompt is requested with no echo, and the prompt matches a configurable pattern.protected booleanUserAuthKeyboardInteractive. verifyTrialsCount(ClientSession session, java.lang.String service, int cmd, int nbTrials, int maxAllowed)default voidUserInteraction. welcome(ClientSession session, java.lang.String banner, java.lang.String lang)Displays the welcome banner to the user. -
Uses of ClientSession in org.apache.sshd.client.auth.password
Methods in org.apache.sshd.client.auth.password with parameters of type ClientSession Modifier and Type Method Description UserAuthPasswordUserAuthPasswordFactory. createUserAuth(ClientSession session)voidUserAuthPassword. init(ClientSession session, java.lang.String service)protected booleanUserAuthPassword. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)protected java.lang.StringUserAuthPassword. resolveAttemptedPassword(ClientSession session, java.lang.String service)protected booleanUserAuthPassword. sendAuthDataRequest(ClientSession session, java.lang.String service)protected IoWriteFutureUserAuthPassword. sendPassword(Buffer buffer, ClientSession session, java.lang.String oldPassword, java.lang.String newPassword)Sends the password via aSSH_MSG_USERAUTH_REQUESTmessage.default voidPasswordAuthenticationReporter. signalAuthenticationAttempt(ClientSession session, java.lang.String service, java.lang.String oldPassword, boolean modified, java.lang.String newPassword)default voidPasswordAuthenticationReporter. signalAuthenticationExhausted(ClientSession session, java.lang.String service)Signals end of passwords attempts and optionally switching to other authentication methods.default voidPasswordAuthenticationReporter. signalAuthenticationFailure(ClientSession session, java.lang.String service, java.lang.String password, boolean partial, java.util.List<java.lang.String> serverMethods)default voidPasswordAuthenticationReporter. signalAuthenticationSuccess(ClientSession session, java.lang.String service, java.lang.String password)voidUserAuthPassword. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)voidUserAuthPassword. signalAuthMethodSuccess(ClientSession session, java.lang.String service, Buffer buffer) -
Uses of ClientSession in org.apache.sshd.client.auth.pubkey
Fields in org.apache.sshd.client.auth.pubkey declared as ClientSession Modifier and Type Field Description private ClientSessionAbstractKeyPairIterator. sessionMethods in org.apache.sshd.client.auth.pubkey that return ClientSession Modifier and Type Method Description ClientSessionAbstractKeyPairIterator. getClientSession()ClientSessionAbstractKeyPairIterator. getSession()Methods in org.apache.sshd.client.auth.pubkey with parameters of type ClientSession Modifier and Type Method Description protected byte[]UserAuthPublicKey. appendSignature(ClientSession session, java.lang.String service, java.lang.String name, java.lang.String username, java.lang.String algo, java.security.PublicKey key, Buffer buffer)protected java.util.Iterator<PublicKeyIdentity>UserAuthPublicKey. createPublicKeyIterator(ClientSession session, SignatureFactoriesManager manager)UserAuthPublicKeyUserAuthPublicKeyFactory. createUserAuth(ClientSession session)voidUserAuthPublicKey. init(ClientSession session, java.lang.String service)protected java.lang.Iterable<KeyAgentIdentity>UserAuthPublicKeyIterator. initializeAgentIdentities(ClientSession session)protected java.lang.Iterable<KeyPairIdentity>UserAuthPublicKeyIterator. initializeSessionIdentities(ClientSession session, SignatureFactoriesManager signatureFactories)protected booleanUserAuthPublicKey. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)protected PublicKeyIdentityUserAuthPublicKey. resolveAttemptedPublicKeyIdentity(ClientSession session, java.lang.String service)protected booleanUserAuthPublicKey. sendAuthDataRequest(ClientSession session, java.lang.String service)default voidPublicKeyAuthenticationReporter. signalAuthenticationAttempt(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String signature)Sending the initial request to use public key authenticationdefault voidPublicKeyAuthenticationReporter. signalAuthenticationExhausted(ClientSession session, java.lang.String service)Signals end of public key attempts and optionally switching to other authentication methods.default voidPublicKeyAuthenticationReporter. signalAuthenticationFailure(ClientSession session, java.lang.String service, java.security.KeyPair identity, boolean partial, java.util.List<java.lang.String> serverMethods)default voidPublicKeyAuthenticationReporter. signalAuthenticationSuccess(ClientSession session, java.lang.String service, java.security.KeyPair identity)voidUserAuthPublicKey. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)voidUserAuthPublicKey. signalAuthMethodSuccess(ClientSession session, java.lang.String service, Buffer buffer)default voidPublicKeyAuthenticationReporter. signalSignatureAttempt(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String signature, byte[] signed)Sending the signed response to the server's challengeConstructors in org.apache.sshd.client.auth.pubkey with parameters of type ClientSession Constructor Description AbstractKeyPairIterator(ClientSession session)SessionKeyPairIterator(ClientSession session, SignatureFactoriesManager signatureFactories, java.util.Iterator<java.security.KeyPair> keys)SshAgentPublicKeyIterator(ClientSession session, SshAgent agent)UserAuthPublicKeyIterator(ClientSession session, SignatureFactoriesManager signatureFactories) -
Uses of ClientSession in org.apache.sshd.client.channel
Methods in org.apache.sshd.client.channel that return ClientSession Modifier and Type Method Description default ClientSessionClientChannel. getClientSession() -
Uses of ClientSession in org.apache.sshd.client.future
Methods in org.apache.sshd.client.future that return ClientSession Modifier and Type Method Description default ClientSessionConnectFuture. getClientSession()ClientSessionDefaultConnectFuture. getSession()Methods in org.apache.sshd.client.future with parameters of type ClientSession Modifier and Type Method Description voidConnectFuture. setSession(ClientSession session)Sets the newly connected session and notifies all threads waiting for this future.voidDefaultConnectFuture. setSession(ClientSession session) -
Uses of ClientSession in org.apache.sshd.client.keyverifier
Methods in org.apache.sshd.client.keyverifier with parameters of type ClientSession Modifier and Type Method Description protected booleanKnownHostsServerKeyVerifier. acceptIncompleteHostKeys(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey, java.lang.Throwable reason)Called if failed to reload known hosts - by default invokesKnownHostsServerKeyVerifier.acceptUnknownHostKey(ClientSession, SocketAddress, PublicKey)protected booleanKnownHostsServerKeyVerifier. acceptKnownHostEntries(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey, java.util.Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts)protected booleanKnownHostsServerKeyVerifier. acceptKnownHostEntry(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey, KnownHostEntry entry)Invoked after known host entry located and keys match - by default checks that entry has not been revokedbooleanKnownHostsServerKeyVerifier. acceptModifiedServerKey(ClientSession clientSession, java.net.SocketAddress remoteAddress, KnownHostEntry entry, java.security.PublicKey expected, java.security.PublicKey actual)booleanModifiedServerKeyAcceptor. acceptModifiedServerKey(ClientSession clientSession, java.net.SocketAddress remoteAddress, KnownHostEntry entry, java.security.PublicKey expected, java.security.PublicKey actual)Invoked when a matching known host key was found but it does not match the presented one.protected booleanKnownHostsServerKeyVerifier. acceptUnknownHostKey(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)Invoked if none of the known hosts matches the current one - by default invokes the delegate.protected KnownHostsServerKeyVerifier.HostEntryPairKnownHostsServerKeyVerifier. findKnownHostEntry(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.util.Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts)protected NamedFactory<Mac>KnownHostsServerKeyVerifier. getHostValueDigester(ClientSession clientSession, java.net.SocketAddress remoteAddress, SshdSocketAddress hostIdentity)Invoked byKnownHostsServerKeyVerifier.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 returnsnull- i.e., no hashingprotected java.util.function.Supplier<java.util.Collection<KnownHostsServerKeyVerifier.HostEntryPair>>KnownHostsServerKeyVerifier. getKnownHostSupplier(ClientSession clientSession, java.nio.file.Path file)protected voidStaticServerKeyVerifier. handleAcceptance(ClientSession sshClientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)protected voidKnownHostsServerKeyVerifier. handleKnownHostsFileUpdateFailure(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey, java.nio.file.Path file, java.util.Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts, java.lang.Throwable reason)Invoked whenKnownHostsServerKeyVerifier.updateKnownHostsFile(ClientSession, SocketAddress, PublicKey, Path, Collection)fails - by default just issues a warning.protected voidKnownHostsServerKeyVerifier. handleModifiedServerKeyUpdateFailure(ClientSession clientSession, java.net.SocketAddress remoteAddress, KnownHostsServerKeyVerifier.HostEntryPair match, java.security.PublicKey serverKey, java.nio.file.Path file, java.util.Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts, java.lang.Throwable reason)Invoked if#updateModifiedServerKey(ClientSession, SocketAddress, HostEntryPair, PublicKey, Path)throws an exception.protected voidStaticServerKeyVerifier. handleRejection(ClientSession sshClientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)protected KnownHostEntryKnownHostsServerKeyVerifier. prepareKnownHostEntry(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)Invoked byKnownHostsServerKeyVerifier.updateKnownHostsFile(ClientSession, SocketAddress, PublicKey, Path, Collection)in order to generate the host entry to be writtenprotected java.lang.StringKnownHostsServerKeyVerifier. prepareModifiedServerKeyLine(ClientSession clientSession, java.net.SocketAddress remoteAddress, KnownHostEntry entry, java.lang.String curLine, java.security.PublicKey expected, java.security.PublicKey actual)Invoked byKnownHostsServerKeyVerifier.updateModifiedServerKey(ClientSession, SocketAddress, HostEntryPair, PublicKey, Path, Collection)in order to prepare the replacement - by default it replaces the key part with the new oneprotected java.util.List<KnownHostsServerKeyVerifier.HostEntryPair>DefaultKnownHostsServerKeyVerifier. reloadKnownHosts(ClientSession session, java.nio.file.Path file)protected java.util.List<KnownHostsServerKeyVerifier.HostEntryPair>KnownHostsServerKeyVerifier. reloadKnownHosts(ClientSession session, java.nio.file.Path file)protected java.security.PublicKeyKnownHostsServerKeyVerifier. resolveHostKey(ClientSession session, KnownHostEntry entry, PublicKeyEntryResolver resolver)Recover the associated public key from a known host entryprotected java.util.Collection<SshdSocketAddress>KnownHostsServerKeyVerifier. resolveHostNetworkIdentities(ClientSession clientSession, java.net.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 KnownHostEntryKnownHostsServerKeyVerifier. updateKnownHostsFile(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey, java.nio.file.Path file, java.util.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 fileprotected voidKnownHostsServerKeyVerifier. updateModifiedServerKey(ClientSession clientSession, java.net.SocketAddress remoteAddress, KnownHostsServerKeyVerifier.HostEntryPair match, java.security.PublicKey actual, java.nio.file.Path file, java.util.Collection<KnownHostsServerKeyVerifier.HostEntryPair> knownHosts)Invoked if a matching host entry was found, but the key did not match andKnownHostsServerKeyVerifier.acceptModifiedServerKey(ClientSession, SocketAddress, KnownHostEntry, PublicKey, PublicKey)returnedtrue.booleanDelegatingServerKeyVerifier. verifyServerKey(ClientSession session, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)booleanKnownHostsServerKeyVerifier. verifyServerKey(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)booleanRequiredServerKeyVerifier. verifyServerKey(ClientSession sshClientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)booleanServerKeyVerifier. verifyServerKey(ClientSession clientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey)Verify that the server key provided is really the one of the host.booleanStaticServerKeyVerifier. verifyServerKey(ClientSession sshClientSession, java.net.SocketAddress remoteAddress, java.security.PublicKey serverKey) -
Uses of ClientSession in org.apache.sshd.client.session
Classes in org.apache.sshd.client.session that implement ClientSession Modifier and Type Class Description classAbstractClientSessionProvides default implementations ofClientSessionrelated methodsclassClientSessionImplThe default implementation of aClientSessionMethods in org.apache.sshd.client.session that return ClientSession Modifier and Type Method Description ClientSessionClientConnectionService. getClientSession()ClientSessionClientSessionHolder. getClientSession()ClientSessionClientUserAuthService. getClientSession()ClientSessionClientUserAuthService. getSession()Methods in org.apache.sshd.client.session with parameters of type ClientSession Modifier and Type Method Description protected AuthFutureClientUserAuthService. createAuthFuture(ClientSession session, java.lang.String service)static java.util.Iterator<java.lang.String>ClientSession. passwordIteratorOf(ClientSession session)Creates a "unified"Iteratorof passwords out of the registered passwords and the extra available ones as a single iterator of passwordsstatic KeyIdentityProviderClientSession. providerOf(ClientSession session)Creates a "unified"KeyIdentityProviderof key pairs out of the registeredKeyPairidentities and the extra available ones as a single iterator of key pairsvoidClientProxyConnector. sendClientProxyMetadata(ClientSession session)Invoked once initial connection has been established so that the proxy can open its channel and send the meta-data to its peer.protected IoWriteFutureClientUserAuthService. sendInitialAuthRequest(ClientSession session, java.lang.String service)protected AuthFutureClientUserAuthService. updateCurrentAuthFuture(ClientSession session, java.lang.String service) -
Uses of ClientSession in org.apache.sshd.client.session.forward
Fields in org.apache.sshd.client.session.forward declared as ClientSession Modifier and Type Field Description private ClientSessionPortForwardingTracker. sessionMethods in org.apache.sshd.client.session.forward that return ClientSession Modifier and Type Method Description ClientSessionPortForwardingTracker. getClientSession()ClientSessionPortForwardingTracker. getSession()Constructors in org.apache.sshd.client.session.forward with parameters of type ClientSession Constructor 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) -
Uses of ClientSession in org.apache.sshd.client.simple
Methods in org.apache.sshd.client.simple that return ClientSession Modifier and Type Method Description protected ClientSessionAbstractSimpleClientSessionCreator. authSession(ConnectFuture future, java.lang.String password)protected ClientSessionAbstractSimpleClientSessionCreator. authSession(ConnectFuture future, java.security.KeyPair identity)protected ClientSessionAbstractSimpleClientSessionCreator. authSession(ClientSession clientSession)protected ClientSessionAbstractSimpleClientSessionCreator. loginSession(ConnectFuture future, java.lang.String password)protected ClientSessionAbstractSimpleClientSessionCreator. loginSession(ConnectFuture future, java.security.KeyPair identity)ClientSessionAbstractSimpleClientSessionCreator. sessionLogin(java.lang.String uri, java.lang.String password)ClientSessionAbstractSimpleClientSessionCreator. sessionLogin(java.lang.String uri, java.security.KeyPair identity)ClientSessionAbstractSimpleClientSessionCreator. sessionLogin(java.net.SocketAddress target, java.lang.String username, java.lang.String password)ClientSessionAbstractSimpleClientSessionCreator. sessionLogin(java.net.SocketAddress target, java.lang.String username, java.security.KeyPair identity)default ClientSessionSimpleSessionClient. sessionLogin(java.lang.String host, int port, java.lang.String username, java.lang.String password)Creates a session and logs in using the provided credentialsdefault ClientSessionSimpleSessionClient. sessionLogin(java.lang.String host, int port, java.lang.String username, java.security.KeyPair identity)Creates a session and logs in using the provided credentialsClientSessionSimpleSessionClient. sessionLogin(java.lang.String uri, java.lang.String password)Creates a session and logs in using the provided credentialsdefault ClientSessionSimpleSessionClient. sessionLogin(java.lang.String host, java.lang.String username, java.lang.String password)Creates a session on the default port and logs in using the provided credentialsdefault ClientSessionSimpleSessionClient. sessionLogin(java.lang.String host, java.lang.String username, java.security.KeyPair identity)Creates a session on the default port and logs in using the provided credentialsClientSessionSimpleSessionClient. sessionLogin(java.lang.String uri, java.security.KeyPair identity)Creates a session and logs in using the provided credentialsdefault ClientSessionSimpleSessionClient. sessionLogin(java.net.InetAddress host, int port, java.lang.String username, java.lang.String password)Creates a session and logs in using the provided credentialsdefault ClientSessionSimpleSessionClient. sessionLogin(java.net.InetAddress host, int port, java.lang.String username, java.security.KeyPair identity)Creates a session and logs in using the provided credentialsdefault ClientSessionSimpleSessionClient. sessionLogin(java.net.InetAddress host, java.lang.String username, java.lang.String password)Creates a session on the default port and logs in using the provided credentialsdefault ClientSessionSimpleSessionClient. sessionLogin(java.net.InetAddress host, java.lang.String username, java.security.KeyPair identity)Creates a session on the default port and logs in using the provided credentialsClientSessionSimpleSessionClient. sessionLogin(java.net.SocketAddress target, java.lang.String username, java.lang.String password)Creates a session and logs in using the provided credentialsClientSessionSimpleSessionClient. sessionLogin(java.net.SocketAddress target, java.lang.String username, java.security.KeyPair identity)Creates a session and logs in using the provided credentialsMethods in org.apache.sshd.client.simple with parameters of type ClientSession Modifier and Type Method Description protected ClientSessionAbstractSimpleClientSessionCreator. authSession(ClientSession clientSession) -
Uses of ClientSession in org.apache.sshd.client.subsystem
Methods in org.apache.sshd.client.subsystem that return ClientSession Modifier and Type Method Description default ClientSessionSubsystemClient. getSession() -
Uses of ClientSession in org.apache.sshd.scp.client
Fields in org.apache.sshd.scp.client declared as ClientSession Modifier and Type Field Description private ClientSessionDefaultScpClient. clientSessionprivate ClientSessionScpRemote2RemoteTransferHelper. destSessionprivate ClientSessionScpRemote2RemoteTransferHelper. sourceSessionMethods in org.apache.sshd.scp.client that return ClientSession Modifier and Type Method Description ClientSessionDefaultScpClient. getClientSession()ClientSessionScpRemote2RemoteTransferHelper. getDestinationSession()default ClientSessionScpClient. getSession()ClientSessionScpRemote2RemoteTransferHelper. getSourceSession()Methods in org.apache.sshd.scp.client with parameters of type ClientSession Modifier and Type Method Description ScpClientDefaultScpClientCreator. createScpClient(ClientSession session, ScpFileOpener opener, ScpTransferEventListener listener)default ScpClientScpClientCreator. createScpClient(ClientSession session)Create an SCP client from this session.default ScpClientScpClientCreator. createScpClient(ClientSession session, ScpFileOpener opener)Create an SCP client from this session.ScpClientScpClientCreator. createScpClient(ClientSession session, ScpFileOpener opener, ScpTransferEventListener listener)Create an SCP client from this session.default ScpClientScpClientCreator. createScpClient(ClientSession session, ScpTransferEventListener listener)Create an SCP client from this session.protected CloseableScpClientSimpleScpClientImpl. createScpClient(ClientSession session)voidScpRemote2RemoteTransferListener. endDirectDirectoryTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details, java.lang.Throwable thrown)Indicates end of direct file transfervoidScpRemote2RemoteTransferListener. endDirectFileTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details, long xferSize, java.lang.Throwable thrown)Indicates end of direct file transferprotected ChannelExecAbstractScpClient. openCommandChannel(ClientSession session, java.lang.String cmd)voidScpRemote2RemoteTransferListener. startDirectDirectoryTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details)Indicates start of direct directory transfervoidScpRemote2RemoteTransferListener. startDirectFileTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details)Indicates start of direct file transferMethod parameters in org.apache.sshd.scp.client with type arguments of type ClientSession Modifier and Type Method Description protected CloseableScpClientSimpleScpClientImpl. createScpClient(IOFunction<? super SimpleClient,? extends ClientSession> sessionProvider)Constructors in org.apache.sshd.scp.client with parameters of type ClientSession Constructor Description DefaultScpClient(ClientSession clientSession)DefaultScpClient(ClientSession clientSession, ScpFileOpener fileOpener, ScpTransferEventListener eventListener)ScpRemote2RemoteTransferHelper(ClientSession sourceSession, ClientSession destSession)ScpRemote2RemoteTransferHelper(ClientSession sourceSession, ClientSession destSession, ScpRemote2RemoteTransferListener listener) -
Uses of ClientSession in org.apache.sshd.scp.common.helpers
Methods in org.apache.sshd.scp.common.helpers with parameters of type ClientSession Modifier and Type Method Description voidCommandStatusHandler. handleCommandExitStatus(ClientSession session, java.lang.String cmd, java.lang.Integer exitStatus)Invoked by the variousupload/downloadmethods after having successfully completed the remote copy command and (optionally) having received an exit status from the remote serverstatic voidScpIoUtils. handleCommandExitStatus(ClientSession session, java.lang.String cmd, java.lang.Integer exitStatus, org.slf4j.Logger log)Invoked by the variousupload/downloadmethods after having successfully completed the remote copy command and (optionally) having received an exit status from the remote serverstatic voidScpIoUtils. handleCommandExitStatus(ClientSession session, java.lang.String cmd, ClientChannel channel, CommandStatusHandler handler, org.slf4j.Logger log)Invoked by the variousupload/downloadmethods after having successfully completed the remote copy command and (optionally) having received an exit status from the remote server.static ChannelExecScpIoUtils. openCommandChannel(ClientSession session, java.lang.String cmd, org.slf4j.Logger log) -
Uses of ClientSession in org.apache.sshd.sftp.client
Methods in org.apache.sshd.sftp.client with parameters of type ClientSession Modifier and Type Method Description default SftpClientSftpClientFactory. createSftpClient(ClientSession session)Create an SFTP client from this session.default SftpClientSftpClientFactory. createSftpClient(ClientSession session, int version)Creates an SFTP client using the specified versiondefault SftpClientSftpClientFactory. createSftpClient(ClientSession session, SftpErrorDataHandler errorDataHandler)Create an SFTP client from this session.default SftpClientSftpClientFactory. createSftpClient(ClientSession session, SftpVersionSelector selector)SftpClientSftpClientFactory. createSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler)default SftpFileSystemSftpClientFactory. createSftpFileSystem(ClientSession session)default SftpFileSystemSftpClientFactory. createSftpFileSystem(ClientSession session, int version)default SftpFileSystemSftpClientFactory. createSftpFileSystem(ClientSession session, int readBufferSize, int writeBufferSize)default SftpFileSystemSftpClientFactory. createSftpFileSystem(ClientSession session, int version, int readBufferSize, int writeBufferSize)default SftpFileSystemSftpClientFactory. createSftpFileSystem(ClientSession session, SftpVersionSelector selector)default SftpFileSystemSftpClientFactory. createSftpFileSystem(ClientSession session, SftpVersionSelector selector, int readBufferSize, int writeBufferSize)SftpFileSystemSftpClientFactory. createSftpFileSystem(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler, int readBufferSize, int writeBufferSize)intSftpVersionSelector.NamedVersionSelector. selectVersion(ClientSession session, boolean initial, int current, java.util.List<java.lang.Integer> available)intSftpVersionSelector. selectVersion(ClientSession session, boolean initial, int current, java.util.List<java.lang.Integer> available) -
Uses of ClientSession in org.apache.sshd.sftp.client.fs
Fields in org.apache.sshd.sftp.client.fs declared as ClientSession Modifier and Type Field Description private ClientSessionSftpFileSystem. clientSessionMethods in org.apache.sshd.sftp.client.fs that return ClientSession Modifier and Type Method Description default ClientSessionSftpFileSystemClientSessionInitializer. createClientSession(SftpFileSystemProvider provider, SftpFileSystemInitializationContext context)Invoked by theSftpFileSystemProvider.newFileSystem(java.net.URI, Map)method in order to obtain an initial (non-authenticated)ClientSession.ClientSessionSftpFileSystem. getClientSession()ClientSessionSftpFileSystem.Wrapper. getClientSession()ClientSessionSftpFileSystem. getSession()Methods in org.apache.sshd.sftp.client.fs with parameters of type ClientSession Modifier and Type Method Description default voidSftpFileSystemClientSessionInitializer. authenticateClientSession(SftpFileSystemProvider provider, SftpFileSystemInitializationContext context, ClientSession session)Invoked by theSftpFileSystemProvider.newFileSystem(java.net.URI, Map)method in order to authenticate the session obtained fromSftpFileSystemClientSessionInitializer.createClientSession(SftpFileSystemProvider, SftpFileSystemInitializationContext)default SftpFileSystemSftpFileSystemClientSessionInitializer. createSftpFileSystem(SftpFileSystemProvider provider, SftpFileSystemInitializationContext context, ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler)Invoked by theSftpFileSystemProvider.newFileSystem(java.net.URI, Map)method in order to create theSftpFileSystemonce session has been authenticated.static java.lang.StringSftpFileSystemProvider. getFileSystemIdentifier(ClientSession session)Uses the remote host address, port and current username to create a unique identifierSftpFileSystemSftpFileSystemProvider. newFileSystem(ClientSession session)Constructors in org.apache.sshd.sftp.client.fs with parameters of type ClientSession Constructor Description SftpFileSystem(SftpFileSystemProvider provider, java.lang.String id, ClientSession session, SftpClientFactory factory, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) -
Uses of ClientSession in org.apache.sshd.sftp.client.impl
Fields in org.apache.sshd.sftp.client.impl declared as ClientSession Modifier and Type Field Description private ClientSessionDefaultSftpClient. clientSessionMethods in org.apache.sshd.sftp.client.impl that return ClientSession Modifier and Type Method Description ClientSessionDefaultSftpClient. getClientSession()Methods in org.apache.sshd.sftp.client.impl with parameters of type ClientSession Modifier and Type Method Description protected DefaultSftpClientDefaultSftpClientFactory. createDefaultSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler)protected ChannelSubsystemDefaultSftpClient. createSftpChannelSubsystem(ClientSession clientSession)SftpClientDefaultSftpClientFactory. createSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler)protected SftpClientSimpleSftpClientImpl. createSftpClient(ClientSession session)SftpFileSystemDefaultSftpClientFactory. createSftpFileSystem(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler, int readBufferSize, int writeBufferSize)protected voidDefaultSftpClient. init(ClientSession session, SftpVersionSelector initialVersionSelector, java.time.Duration initializationTimeout)Method parameters in org.apache.sshd.sftp.client.impl with type arguments of type ClientSession Modifier and Type Method Description protected SftpClientSimpleSftpClientImpl. createSftpClient(IOFunction<? super SimpleClient,? extends ClientSession> sessionProvider)Constructors in org.apache.sshd.sftp.client.impl with parameters of type ClientSession Constructor Description DefaultSftpClient(ClientSession clientSession, SftpVersionSelector initialVersionSelector, SftpErrorDataHandler errorDataHandler)
-