org.apache.ivy.plugins.repository.ssh
public abstract class AbstractSshBasedRepository extends AbstractRepository
Constructor Summary | |
---|---|
AbstractSshBasedRepository() |
Method Summary | |
---|---|
String | getHost() |
File | getKeyFile() |
String | getKeyFilePassword() |
File | getPassFile() |
int | getPort() |
protected abstract String | getRepositoryScheme() |
protected Session | getSession(String pathOrUri)
get a new session using the default attributes if the given String is a full uri, use the
data from the uri instead
|
String | getUser() |
String | getUserPassword() |
protected void | releaseSession(Session session, String pathOrUri)
closes the session and remove it from the cache (eg. on case of errors)
|
void | setHost(String host) |
void | setKeyFile(File filePath)
Sets the full file path to use for accessing a PEM key file
|
void | setKeyFilePassword(String keyFilePassword) |
void | setPassFile(File passFile) |
void | setPort(int port) |
void | setUser(String user)
set the default user to use for the connection if no user is given or a PEM file is used
|
void | setUserPassword(String password) |
Returns: the host
Returns: the keyFile
Returns: the keyFile password for public key based authentication
Returns: the passFile
Returns: the port
Parameters: pathOrUri might be just a path or a full ssh or sftp uri
Returns: matching Session
Returns: the user to use for the connection if no user is given or a PEM file is used
Returns: the user password
Parameters: session key for the cache pathOrUri to release
Parameters: host the host to set
Parameters: filePath fully qualified name
Parameters: keyFilePassword sets password for public key based authentication
Parameters: passFile the passfile to set
Parameters: port the port to set
Parameters: user to use
Parameters: password password to use for user/password authentication