@Deprecated public class DefaultSecureChannel extends Object implements SecureChannel
| Modifier and Type | Field and Description | 
|---|---|
| protected com.jcraft.jsch.Session | sessionDeprecated.  | 
| protected com.jcraft.jsch.ChannelSftp | sftpDeprecated.  | 
| Constructor and Description | 
|---|
| DefaultSecureChannel()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | addFilenameToPath(RemoteFile destination,
                                  String filename)Deprecated.  | 
| protected RemoteFile | clone(RemoteFile file)Deprecated.  | 
| void | close()Deprecated.  | 
| protected void | closeQuietly(com.jcraft.jsch.Channel channel)Deprecated.  | 
| protected void | closeQuietly(com.jcraft.jsch.Session session)Deprecated.  | 
| protected void | connect(com.jcraft.jsch.Channel channel,
              Integer timeout)Deprecated.  | 
| void | copyFile(File source,
                RemoteFile destination)Deprecated.  | 
| void | copyFile(RemoteFile source,
                File destination)Deprecated.  | 
| void | copyFile(RemoteFile source,
                OutputStream out)Deprecated.  | 
| void | copyFileToDirectory(File source,
                                      RemoteFile destination)Deprecated.  | 
| void | copyFileToDirectory(RemoteFile source,
                                      File destination)Deprecated.  | 
| void | copyInputStreamToFile(InputStream source,
                                          RemoteFile destination)Deprecated.  | 
| void | copyLocationToDirectory(String location,
                                              RemoteFile destination)Deprecated.  | 
| void | copyLocationToFile(String location,
                                    RemoteFile destination)Deprecated.  | 
| void | copyRemoteFile(String absolutePath,
                            OutputStream out)Deprecated.  | 
| void | copyStringToFile(String string,
                                RemoteFile destination)Deprecated.  | 
| protected void | createDirectories(RemoteFile file)Deprecated.  | 
| void | createDirectory(RemoteFile dir)Deprecated.  | 
| void | deleteFile(String absolutePath)Deprecated.  | 
| Result | executeCommand(String command)Deprecated.  | 
| Result | executeCommand(String command,
                            String stdin)Deprecated.  | 
| void | executeNoWait(String command)Deprecated.  | 
| boolean | exists(String absolutePath)Deprecated.  | 
| protected void | fillInAttributes(RemoteFile file)Deprecated.  | 
| protected void | fillInAttributes(RemoteFile file,
                                com.jcraft.jsch.SftpATTRS attributes)Deprecated.  | 
| protected void | fillInAttributes(RemoteFile file,
                                String path)Deprecated.  | 
| protected String | getAbsolutePath(String absolutePath,
                              String filename)Deprecated.  | 
| File | getConfig()Deprecated.  | 
| int | getConnectTimeout()Deprecated.  | 
| String | getEncoding()Deprecated.  | 
| String | getHostname()Deprecated.  | 
| protected InputStream | getInputStream(String s,
                            String encoding)Deprecated.  | 
| protected String | getInvalidExistingFileMessage(RemoteFile existing)Deprecated.  | 
| protected com.jcraft.jsch.JSch | getJSch()Deprecated.  | 
| protected com.jcraft.jsch.JSch | getJSch(List<File> privateKeys,
              List<String> privateKeyStrings)Deprecated.  | 
| File | getKnownHosts()Deprecated.  | 
| RemoteFile | getMetaData(String absolutePath)Deprecated.  | 
| Properties | getOptions()Deprecated.  | 
| int | getPort()Deprecated.  | 
| List<File> | getPrivateKeys()Deprecated.  | 
| List<String> | getPrivateKeyStrings()Deprecated.  | 
| protected Properties | getSessionProperties(Properties options,
                                        boolean strictHostKeyChecking)Deprecated.  | 
| protected List<File> | getUniquePrivateKeyFiles()Deprecated.  | 
| String | getUsername()Deprecated.  | 
| int | getWaitForClosedSleepMillis()Deprecated.  | 
| RemoteFile | getWorkingDirectory()Deprecated.  | 
| protected void | handleNoSuchFileException(RemoteFile file,
                                                  com.jcraft.jsch.SftpException e)Deprecated.  | 
| boolean | isDirectory(String absolutePath)Deprecated.  | 
| boolean | isIncludeDefaultPrivateKeyLocations()Deprecated.  | 
| protected boolean | isNoSuchFileException(com.jcraft.jsch.SftpException exception)Deprecated.  | 
| protected boolean | isStatus(RemoteFile file,
                Status status)Deprecated.  | 
| boolean | isStrictHostKeyChecking()Deprecated.  | 
| boolean | isUseConfigFile()Deprecated.  | 
| protected void | logOpen()Deprecated.  | 
| protected void | mkdir(RemoteFile dir)Deprecated.  | 
| void | open()Deprecated.  | 
| protected com.jcraft.jsch.Session | openSession(com.jcraft.jsch.JSch jsch)Deprecated.  | 
| protected com.jcraft.jsch.ChannelSftp | openSftpChannel(com.jcraft.jsch.Session session,
                              Integer timeout)Deprecated.  | 
| protected void | setAttributes(RemoteFile file)Deprecated.  | 
| void | setConfig(File config)Deprecated.  | 
| void | setConnectTimeout(int connectTimeout)Deprecated.  | 
| void | setConnectTimeout(Integer connectTimeout)Deprecated.  | 
| void | setEncoding(String encoding)Deprecated.  | 
| void | setHostname(String hostname)Deprecated.  | 
| void | setIncludeDefaultPrivateKeyLocations(boolean includeDefaultPrivateKeyLocations)Deprecated.  | 
| void | setKnownHosts(File knownHosts)Deprecated.  | 
| void | setOptions(Properties options)Deprecated.  | 
| void | setPort(int port)Deprecated.  | 
| void | setPrivateKeys(List<File> privateKeys)Deprecated.  | 
| void | setPrivateKeyStrings(List<String> privateKeyStrings)Deprecated.  | 
| void | setStrictHostKeyChecking(boolean strictHostKeyChecking)Deprecated.  | 
| void | setUseConfigFile(boolean useConfigFile)Deprecated.  | 
| void | setUsername(String username)Deprecated.  | 
| void | setWaitForClosedSleepMillis(int waitForClosedSleepMillis)Deprecated.  | 
| protected void | sleep(long millis)Deprecated.  | 
| String | toString(RemoteFile source)Deprecated.  | 
| protected void | validate()Deprecated.  | 
| protected boolean | validate(RemoteFile file,
                boolean directoryIndicator)Deprecated.  | 
| protected void | validate(RemoteFile file,
                Status... allowed)Deprecated.  | 
| protected void | waitForClosed(com.jcraft.jsch.ChannelExec exec,
                          long millis)Deprecated.  | 
protected com.jcraft.jsch.Session session
protected com.jcraft.jsch.ChannelSftp sftp
public DefaultSecureChannel()
public void open() throws IOException
open in interface SecureChannelIOExceptionpublic void close()
close in interface SecureChannelpublic Result executeCommand(String command)
executeCommand in interface SecureChannelpublic Result executeCommand(String command, String stdin)
executeCommand in interface SecureChannelpublic void executeNoWait(String command)
executeNoWait in interface SecureChannelprotected InputStream getInputStream(String s, String encoding)
protected void waitForClosed(com.jcraft.jsch.ChannelExec exec, long millis)
protected void sleep(long millis)
public RemoteFile getWorkingDirectory()
getWorkingDirectory in interface SecureChannelprotected void validate()
protected void logOpen()
protected com.jcraft.jsch.ChannelSftp openSftpChannel(com.jcraft.jsch.Session session, Integer timeout) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionprotected void connect(com.jcraft.jsch.Channel channel, Integer timeout) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionprotected void closeQuietly(com.jcraft.jsch.Session session)
protected void closeQuietly(com.jcraft.jsch.Channel channel)
@Deprecated protected Properties getSessionProperties(Properties options, boolean strictHostKeyChecking)
protected com.jcraft.jsch.Session openSession(com.jcraft.jsch.JSch jsch) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionprotected com.jcraft.jsch.JSch getJSch() throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionprotected com.jcraft.jsch.JSch getJSch(List<File> privateKeys, List<String> privateKeyStrings) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchException@Deprecated protected List<File> getUniquePrivateKeyFiles()
public RemoteFile getMetaData(String absolutePath)
getMetaData in interface SecureChannelpublic void deleteFile(String absolutePath)
deleteFile in interface SecureChannelpublic boolean exists(String absolutePath)
exists in interface SecureChannelpublic boolean isDirectory(String absolutePath)
isDirectory in interface SecureChannelprotected void fillInAttributes(RemoteFile file)
protected void fillInAttributes(RemoteFile file, String path)
protected void fillInAttributes(RemoteFile file, com.jcraft.jsch.SftpATTRS attributes)
public void copyFile(File source, RemoteFile destination)
copyFile in interface SecureChannelpublic void copyFileToDirectory(File source, RemoteFile destination)
copyFileToDirectory in interface SecureChannelprotected RemoteFile clone(RemoteFile file)
public void copyLocationToFile(String location, RemoteFile destination)
copyLocationToFile in interface SecureChannelpublic void copyStringToFile(String string, RemoteFile destination)
copyStringToFile in interface SecureChannelpublic String toString(RemoteFile source)
toString in interface SecureChannelpublic void copyInputStreamToFile(InputStream source, RemoteFile destination)
copyInputStreamToFile in interface SecureChannelprotected String getAbsolutePath(String absolutePath, String filename)
protected void addFilenameToPath(RemoteFile destination, String filename)
public void copyLocationToDirectory(String location, RemoteFile destination)
copyLocationToDirectory in interface SecureChannelpublic void copyFile(RemoteFile source, File destination)
copyFile in interface SecureChannelpublic void copyRemoteFile(String absolutePath, OutputStream out) throws IOException
copyRemoteFile in interface SecureChannelIOExceptionpublic void copyFile(RemoteFile source, OutputStream out) throws IOException
copyFile in interface SecureChannelIOExceptionpublic void copyFileToDirectory(RemoteFile source, File destination)
copyFileToDirectory in interface SecureChannelpublic void createDirectory(RemoteFile dir)
createDirectory in interface SecureChannelprotected void createDirectories(RemoteFile file) throws com.jcraft.jsch.SftpException
com.jcraft.jsch.SftpExceptionprotected boolean isStatus(RemoteFile file, Status status)
protected void validate(RemoteFile file, Status... allowed)
protected boolean validate(RemoteFile file, boolean directoryIndicator)
protected String getInvalidExistingFileMessage(RemoteFile existing)
protected void mkdir(RemoteFile dir)
protected void setAttributes(RemoteFile file) throws com.jcraft.jsch.SftpException
com.jcraft.jsch.SftpExceptionprotected void handleNoSuchFileException(RemoteFile file, com.jcraft.jsch.SftpException e)
protected boolean isNoSuchFileException(com.jcraft.jsch.SftpException exception)
public File getKnownHosts()
public void setKnownHosts(File knownHosts)
public boolean isIncludeDefaultPrivateKeyLocations()
public void setIncludeDefaultPrivateKeyLocations(boolean includeDefaultPrivateKeyLocations)
public boolean isStrictHostKeyChecking()
public void setStrictHostKeyChecking(boolean strictHostKeyChecking)
public String getUsername()
public void setUsername(String username)
public String getHostname()
public void setHostname(String hostname)
public int getPort()
public void setPort(int port)
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public List<File> getPrivateKeys()
public void setPrivateKeys(List<File> privateKeys)
public Properties getOptions()
public void setOptions(Properties options)
public void setConnectTimeout(Integer connectTimeout)
public int getWaitForClosedSleepMillis()
public void setWaitForClosedSleepMillis(int waitForClosedSleepMillis)
public String getEncoding()
public void setEncoding(String encoding)
public List<String> getPrivateKeyStrings()
public void setPrivateKeyStrings(List<String> privateKeyStrings)
public boolean isUseConfigFile()
public void setUseConfigFile(boolean useConfigFile)
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.