| java.lang.Object org.apache.ivy.plugins.repository.ssh.SshCache
SshCache | final public class SshCache (Code) | | a class to cache SSH Connections and Channel for the SSH Repository each session is defined by
connecting user / host / port two maps are used to find cache entries one map is using the above
keys, the other uses the session itself
|
attachChannelSftp | public void attachChannelSftp(Session session, ChannelSftp channel)(Code) | | attaches a channelSftp to an existing session cache entry
Parameters: session - to attach the channel to Parameters: channel - channel to attach |
clearSession | public void clearSession(Session session)(Code) | | discardes session entries from the cache
Parameters: session - to clear |
getChannelSftp | public ChannelSftp getChannelSftp(Session session) throws IOException(Code) | | retrieves an sftp channel from the cache
Parameters: session - to connect to channelSftp or null if not successful (channel not existent or dead) |
getSession | public Session getSession(String host, int port, String username, String userPassword, File pemFile, String pemPassword, File passFile) throws IOException(Code) | | Gets a session from the cache or establishes a new session if necessary
Parameters: host - to connect to Parameters: port - to use for session (-1 == use standard port) Parameters: username - for the session to use Parameters: userPassword - to use for authentication (optional) Parameters: pemFile - File to use for public key authentication Parameters: pemPassword - to use for accessing the pemFile (optional) Parameters: passFile - to store credentials session or null if not successful |
|
|