|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 serverpublic AbstractSFtpClient(String hostName, int port)
hostName
- - name of sftp serverport
- - port on which SFTP daemon is runningMethod Detail |
---|
public void setAuthenticationMethod(SFtpAuthMethod authMethod)
setAuthenticationMethod
in interface SFtpClient
authMethod
- - auth methodpublic SFtpAuthMethod getAuthenticationMethod()
getAuthenticationMethod
in interface SFtpClient
public void setAcceptUnknownHostKeys(boolean accept)
setAcceptUnknownHostKeys
in interface SFtpClient
accept
- - whether to accept unknown host keyspublic boolean acceptUnknownHostKeys()
acceptUnknownHostKeys
in interface SFtpClient
public void setSSHVersion(SFtpVersion sshVersion)
setSSHVersion
in interface SFtpClient
sshVersion
- - SSH versionpublic SFtpVersion getSSHVersion()
getSSHVersion
in interface SFtpClient
public void setUserName(String userName)
setUserName
in interface SFtpClient
userName
- - name of the userpublic String getUserName()
getUserName
in interface SFtpClient
public String getHostname()
getHostname
in interface SFtpClient
public int getPort()
getPort
in interface SFtpClient
public void setPassword(char[] pwd)
setPassword
in interface SFtpClient
pwd
- - passwordpublic void setPassPhrase(char[] phrase)
setPassPhrase
in interface SFtpClient
phrase
- - pass phrasepublic void setPrivateKeyFile(String path)
setPrivateKeyFile
in interface SFtpClient
path
- - path to the private key filepublic void setCustomProperties(HashMap<String,Object> props)
setCustomProperties
in interface SFtpClient
props
- - 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 |