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