|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the general configuration items available to both SSH1 and SSH2. Each new instance of SshConnector is initialized with a configuration context for each protocol version. When the user connects to a remote SSH server using the SshConnector the returned SshClient is configured with the context according to the protocol version. Multiple connections can be made from the SshConnector with the same context, and with different instances of SshConnector having different contexts.
SshConnector
,
Ssh1Context
,
Ssh2Context
Method Summary | |
int |
getChannelLimit()
Get the maximum number of channels that are allowed open at any one time. |
HostKeyVerification |
getHostKeyVerification()
Get the host key verification implementation. |
java.lang.String |
getSFTPProvider()
Get the path to the SFTP provider. |
byte[] |
getX11AuthenticationCookie()
Get a fake random cookie for X11 authentication |
java.lang.String |
getX11Display()
Get the currently configured XDisplay setting which will be null if no display is currently set. |
byte[] |
getX11RealCookie()
Get the real X11 authentication cookie, if not cookie has been set the fake cookie will be returned. |
ForwardingRequestListener |
getX11RequestListener()
Get the X11 forwarding request listener. |
void |
setChannelLimit(int max)
Set the maximum number of channels that are allowed open at any one time. |
void |
setHostKeyVerification(HostKeyVerification verify)
Set the host key verification implementation. |
void |
setSFTPProvider(java.lang.String sftpProvider)
Set the path to the SFTP provider. |
void |
setX11Display(java.lang.String xDisplay)
Set the DISPLAY variable for the SSH connection. |
void |
setX11RealCookie(byte[] x11RealCookie)
Sets the real X11 authentication cookie which can be obtained from the users $HOME/.Xauthority file. |
void |
setX11RequestListener(ForwardingRequestListener listener)
Set the listener to which X11 forwarding requests will be processed. |
Method Detail |
public void setChannelLimit(int max)
max
- public int getChannelLimit()
public void setHostKeyVerification(HostKeyVerification verify)
verify
- public HostKeyVerification getHostKeyVerification()
public void setSFTPProvider(java.lang.String sftpProvider)
sftpProvider
- public java.lang.String getSFTPProvider()
public void setX11Display(java.lang.String xDisplay)
xDisplay
- the display in the form localhost:1public java.lang.String getX11Display()
public byte[] getX11AuthenticationCookie()
public void setX11RealCookie(byte[] x11RealCookie)
x11RealCookie
- public byte[] getX11RealCookie()
public void setX11RequestListener(ForwardingRequestListener listener)
listener
- public ForwardingRequestListener getX11RequestListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |