|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.wli.sftp.spi.AbstractSFtpClient
public abstract class AbstractSFtpClient
This class represents the abstract implementation of the Sftp client. The user is expected to implement all the methods provided in this class using third party SFTP client implementation.
| Constructor Summary | |
|---|---|
AbstractSFtpClient(String hostName)
Constructs SFTP client given the hostName |
|
AbstractSFtpClient(String hostName,
int port)
Constructs the SFTP client given the host name and port number |
|
| Method Summary | |
|---|---|
boolean |
acceptUnknownHostKeys()
Returns whether to accept keys from unknown SFTP hosts |
SFtpAuthMethod |
getAuthenticationMethod()
Retrieves the SFtp client authentication method |
HashMap<String,Object> |
getCustomProperties()
Retrieves additional properties for connecting to SFTP server |
String |
getHostname()
Returns the Host name of the SSH server |
int |
getPort()
Return the port number of the SSH server |
SFtpVersion |
getSSHVersion()
Retrieves the SSH version |
String |
getUserName()
Returns the user name |
void |
setAcceptUnknownHostKeys(boolean accept)
Sets whether to accept unknown host server keys or not |
void |
setAuthenticationMethod(SFtpAuthMethod authMethod)
Sets the SFtp client authentication method |
void |
setCustomProperties(HashMap<String,Object> props)
Sets the additional properties for connecting to SFTP server |
void |
setPassPhrase(char[] phrase)
Sets the Pass phrase for the private key file |
void |
setPassword(char[] pwd)
Sets the password used for authentication |
void |
setPrivateKeyFile(String path)
Sets the Private key file for authentication |
void |
setSSHVersion(SFtpVersion sshVersion)
Sets the SSH version |
void |
setUserName(String userName)
Sets the user name for authentication |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bea.wli.sftp.spi.SFtpClient |
|---|
cd, connect, disconnect, get, get, get, list, list, mkdir, mkdirs, put, put, pwd, rename, rm, rmdir |
| Constructor Detail |
|---|
public AbstractSFtpClient(String hostName)
hostName - - host name of SFTP server
public AbstractSFtpClient(String hostName,
int port)
hostName - - name of sftp serverport - - port on which SFTP daemon is running| Method Detail |
|---|
public void setAuthenticationMethod(SFtpAuthMethod authMethod)
setAuthenticationMethod in interface SFtpClientauthMethod - - auth methodpublic SFtpAuthMethod getAuthenticationMethod()
getAuthenticationMethod in interface SFtpClientpublic void setAcceptUnknownHostKeys(boolean accept)
setAcceptUnknownHostKeys in interface SFtpClientaccept - - whether to accept unknown host keyspublic boolean acceptUnknownHostKeys()
acceptUnknownHostKeys in interface SFtpClientpublic void setSSHVersion(SFtpVersion sshVersion)
setSSHVersion in interface SFtpClientsshVersion - - SSH versionpublic SFtpVersion getSSHVersion()
getSSHVersion in interface SFtpClientpublic void setUserName(String userName)
setUserName in interface SFtpClientuserName - - name of the userpublic String getUserName()
getUserName in interface SFtpClientpublic String getHostname()
getHostname in interface SFtpClientpublic int getPort()
getPort in interface SFtpClientpublic void setPassword(char[] pwd)
setPassword in interface SFtpClientpwd - - passwordpublic void setPassPhrase(char[] phrase)
setPassPhrase in interface SFtpClientphrase - - pass phrasepublic void setPrivateKeyFile(String path)
setPrivateKeyFile in interface SFtpClientpath - - path to the private key filepublic void setCustomProperties(HashMap<String,Object> props)
setCustomProperties in interface SFtpClientprops - - name value pairspublic HashMap<String,Object> getCustomProperties()
getCustomProperties in interface SFtpClient
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||