ClientSession related methods
| Modifier and Type | Field and Description |
|---|---|
| private SocketAddress | |
| private final AttributeRepository | |
| private HostBasedAuthenticationReporter | |
| private final List | |
| private final AuthenticationIdentitiesProvider | |
| private KeyIdentityProvider | |
| private PasswordAuthenticationReporter | |
| private PasswordIdentityProvider | |
| private ClientProxyConnector | |
| private PublicKeyAuthenticationReporter | |
| protected final boolean | |
| protected final boolean | |
| private PublicKey | |
| private ServerKeyVerifier | |
| private List | |
| private UserInteraction |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPasswordIdentity(String
Password to be added - may not be password)null/emptyNote this password is in
addition to whatever passwords are available via the Implements org.
|
| public void | addPublicKeyIdentity(KeyPair
The kp)KeyPair to add - may not be null Note: this key is in addition to
whatever keys are available via the org. (if
any)Implements org.
|
| protected void | checkKeys()
Implements abstract org. Indicates the the key exchange is completed and the exchanged keys can now be verified - e.g., client can verify the server's key |
| public ClientChannel | createChannel(String
The channel type type)Implements org. Create a channel of the given type. |
| public ClientChannel | createChannel(String
The channel type type, String The channel sub-type subType)Implements org. Create a channel of the given type and sub-type. |
| public ChannelDirectTcpip | createDirectTcpipChannel(SshdSocketAddress
The local address local, SshdSocketAddress The remote address remote)Implements org. Create a direct tcp-ip channel which can be used to stream data to a remote port from the server. |
| public ChannelExec | createExecChannel(String
The command to execute command, Charset The charset, PtyChannelConfigurationHolder Charset to use for sending the command stringThe PTY configuration to use - if ptyConfig, Map<String, ?> null then internal defaults are usedExtra environment configuration to be transmitted to the server - ignored if
env)null/empty.Implements org. Create a channel to execute a command using specific PTY settings and/or environment. |
| public ChannelExec | createExecChannel(byte[]
The command to execute command, PtyChannelConfigurationHolder The PTY configuration to use - if ptyConfig, Map<String, ?> null then internal defaults are usedExtra environment configuration to be transmitted to the server - ignored if
env)null/empty.Implements org. Create a channel to execute a command using specific PTY settings and/or environment. |
| public ChannelShell | createShellChannel(PtyChannelConfigurationHolder
The PTY configuration to use - if ptyConfig, Map<String, ?> null then internal defaults are usedExtra environment configuration to be transmitted to the server - ignored if
env)null/empty.Implements org. Create a channel to start a shell using specific PTY settings and/or environment. |
| public ChannelSubsystem | createSubsystemChannel(String
The subsystem name subsystem)Implements org. Create a subsystem channel. |
| public ClientProxyConnector | |
| public SocketAddress | getConnectAddress()
Implements org. Returns the original address (after having been translated through host configuration entries if any) that was request to connect. |
| public AttributeRepository | |
| protected ConnectionService | |
| public ClientFactoryManager | |
| protected Forwarder | |
| public HostBasedAuthenticationReporter | |
| public KeyIdentityProvider | |
| public PasswordAuthenticationReporter | |
| public PasswordIdentityProvider | getPasswordIdentityProvider()
Implements org. Retrieve |
| public PublicKeyAuthenticationReporter | |
| public AuthenticationIdentitiesProvider | |
| public PublicKey | getServerKey()
Implements org. Retrieves the server's key |
| public ServerKeyVerifier | getServerKeyVerifier()
Implements org. Retrieve the server key verifier to be used to check the key when connecting to an SSH server. |
| public List | getUserAuthFactories()
Implements org. Retrieve the list of named factories for |
| protected ClientUserAuthService | |
| public UserInteraction | |
| protected void | |
| protected void | |
| protected boolean | readIdentification(Buffer
The buffer)Buffer containing the remote identificationImplements abstract org. Read the other side identification. |
| protected byte[] | |
| protected void | receiveKexInit(Map<KexProposalOption, String> proposal, byte[] seed)
Implements abstract org.
|
| public String | removePasswordIdentity(String
The password to remove - ignored if password)null/emptyImplements org.
|
| public KeyPair | removePublicKeyIdentity(KeyPair
The kp)KeyPair to remove - ignored if nullImplements org.
|
| protected String | resolveAvailableSignaturesProposal(FactoryManager
The manager)FactoryManagerImplements abstract org. Computes the list of available host key signature algorithms supported. |
| protected IoWriteFuture | |
| protected byte[] | sendKexInit(Map<KexProposalOption, String>
our proposal for key exchange negotiation proposal)Overrides org. Send the key exchange initialization packet. |
| public void | |
| public void | |
| public void | |
| protected void | setKexSeed(byte...
The result of the KEXINIT handshake - required for correct session key establishment seed)Implements abstract org.
|
| public void | setKeyIdentityProvider(KeyIdentityProvider keyIdentityProvider)
Implements org.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setServerKeyVerifier(ServerKeyVerifier serverKeyVerifier)
Implements org.
|
| public void | setUserAuthFactories(List<UserAuthFactory> userAuthFactories)
Implements org.
|
| public void | setUserInteraction(UserInteraction userInteraction)
Implements org.
|
| protected void | |
| public SshdSocketAddress | startDynamicPortForwarding(SshdSocketAddress
The local address local)Implements org. Start dynamic local port forwarding using a SOCKS proxy. |
| public SshdSocketAddress | startLocalPortForwarding(SshdSocketAddress
The local address local, SshdSocketAddress The remote address remote)Implements org. Start forwarding the given local address on the client to the given address on the server. |
| public SshdSocketAddress | startRemotePortForwarding(SshdSocketAddress
The remote address remote, SshdSocketAddress The local address local)Implements org. Start forwarding tcpip from the given address on the server to the given address on the client. |
| public void | startService(String
Service name name, Buffer Extra information provided when the service start request was received buffer)Implements org.
|
| public void | stopDynamicPortForwarding(SshdSocketAddress
The local address local)Implements org. Stop a previously started dynamic port forwarding. |
| public void | stopLocalPortForwarding(SshdSocketAddress
The local address local)Implements org. Stop forwarding the given local address. |
| public void | stopRemotePortForwarding(SshdSocketAddress
The remote address remote)Implements org. Stop forwarding of the given remote address. |
| public KeyExchangeFuture | switchToNoneCipher()
Implements org. Switch to a none cipher for performance. |