|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.AdvancedSSHSettings
public class AdvancedSSHSettings
Advanced settings specifically for the SFTP (FTP over SSH) protocol. Generally these settings are not required for basic use of the protocol.
All settings must be set before connecting to the server.
| Method Summary | |
|---|---|
void |
disableAllAlgorithms()
Disables all algorithms. |
void |
disableAllAlgorithms(int algorithmType)
Disables all algorithms of a particular type. |
SSHAuthenticationType |
getAuthenticationType()
Get the type of authentication that is set up to be used. |
SSHFTPAlgorithm[] |
getEnabledAlgorithms()
Returns an array containing all enabled algorithms (of all types). |
SSHFTPAlgorithm[] |
getEnabledAlgorithms(int algorithmType)
Returns an array containing all enabled algorithms of a particular type. |
int |
getMaxPacketSize()
Get the max packet size set |
java.lang.String |
getPrivateKeyFile()
Get the path to the client's private key file, used for client authentication if SSHAuthenticationType.PUBLIC_KEY is being used. |
java.lang.String |
getPrivateKeyFilePassphrase()
Get the passphrase for the private key file. |
SSHAuthPrompt[] |
getSSHAuthPrompts()
Get the array of authentication prompts that are to be used for keyboard-interactive authentication. |
SSHFTPValidator |
getSSHServerValidator()
Returns a reference to the host validator, which validates the server's public key. |
boolean |
isDisableWaitForChannelClose()
Is waiting for server acknowledge on closure of a channel disabled? |
void |
setAlgorithmEnabled(SSHFTPAlgorithm algorithm,
boolean enable)
Enable/disable the given algorithm. |
void |
setAuthenticationType(SSHAuthenticationType sshAuthenticationType)
Set the authentication type to be used. |
void |
setDisableWaitForChannelClose(boolean disableWaitForChannelClose)
Disables waiting for an acknowledgement from the server when the client has requested that a channel be closed. |
void |
setMaxPacketSize(int maxPacketSize)
Set the maximum packet size. |
void |
setPrivateKeyFile(java.lang.String privateKeyFile)
Set the path to the client's private key file, used for client authentication if SSHAuthenticationType.PUBLIC_KEY is being used. |
void |
setPrivateKeyFilePassphrase(java.lang.String privateKeyFilePassphrase)
Set the passphrase for the private key file. |
void |
setSSHAuthPrompts(SSHAuthPrompt[] authPrompts)
Set the array of authentication prompts that are to be used for keyboard-interactive authentication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public SSHFTPValidator getSSHServerValidator()
public boolean isDisableWaitForChannelClose()
public void setDisableWaitForChannelClose(boolean disableWaitForChannelClose)
throws FTPException
disableWaitForChannelClose - true to disable the wait
FTPExceptionpublic java.lang.String getPrivateKeyFile()
public void setPrivateKeyFile(java.lang.String privateKeyFile)
throws FTPException
privateKeyFile - path to file
FTPExceptionpublic java.lang.String getPrivateKeyFilePassphrase()
public void setPrivateKeyFilePassphrase(java.lang.String privateKeyFilePassphrase)
throws FTPException
privateKeyFilePassphrase - passphrase to set
FTPExceptionpublic SSHFTPAlgorithm[] getEnabledAlgorithms()
public SSHFTPAlgorithm[] getEnabledAlgorithms(int algorithmType)
throws SSHFTPException
algorithmType - Type of algorithms to return (See SSHFTPAlgorithm).
SSHFTPException - Thrown if the given algorithm-type is invalid.
public void disableAllAlgorithms(int algorithmType)
throws FTPException
algorithmType - Type of algorithms to return (See SSHFTPAlgorithm).
FTPException
public void disableAllAlgorithms()
throws FTPException
FTPException
public void setAlgorithmEnabled(SSHFTPAlgorithm algorithm,
boolean enable)
throws FTPException
algorithm - Algorithm to enable/disable.enable - Flag indicating whether the algorithm should be enabled or disabled.
FTPExceptionpublic int getMaxPacketSize()
public void setMaxPacketSize(int maxPacketSize)
throws FTPException
maxPacketSize - size to set
FTPExceptionpublic SSHAuthenticationType getAuthenticationType()
public void setAuthenticationType(SSHAuthenticationType sshAuthenticationType)
throws FTPException
sshAuthenticationType - authentication type to be used
FTPExceptionpublic SSHAuthPrompt[] getSSHAuthPrompts()
public void setSSHAuthPrompts(SSHAuthPrompt[] authPrompts)
throws FTPException
authPrompts - prompts to set up
FTPException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||