|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.common.util.secure.DefaultSecureChannel
@Deprecated public class DefaultSecureChannel
Field Summary | |
---|---|
protected com.jcraft.jsch.Session |
session
Deprecated. |
protected com.jcraft.jsch.ChannelSftp |
sftp
Deprecated. |
Constructor Summary | |
---|---|
DefaultSecureChannel()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.jcraft.jsch.Session session
protected com.jcraft.jsch.ChannelSftp sftp
Constructor Detail |
---|
public DefaultSecureChannel()
Method Detail |
---|
public void open() throws IOException
open
in interface SecureChannel
IOException
public void close()
close
in interface SecureChannel
public Result executeCommand(String command)
executeCommand
in interface SecureChannel
public Result executeCommand(String command, String stdin)
executeCommand
in interface SecureChannel
public void executeNoWait(String command)
executeNoWait
in interface SecureChannel
protected 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 SecureChannel
protected 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.JSchException
protected void connect(com.jcraft.jsch.Channel channel, Integer timeout) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchException
protected 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.JSchException
protected com.jcraft.jsch.JSch getJSch() throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchException
protected 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 SecureChannel
public void deleteFile(String absolutePath)
deleteFile
in interface SecureChannel
public boolean exists(String absolutePath)
exists
in interface SecureChannel
public boolean isDirectory(String absolutePath)
isDirectory
in interface SecureChannel
protected 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 SecureChannel
public void copyFileToDirectory(File source, RemoteFile destination)
copyFileToDirectory
in interface SecureChannel
protected RemoteFile clone(RemoteFile file)
public void copyLocationToFile(String location, RemoteFile destination)
copyLocationToFile
in interface SecureChannel
public void copyStringToFile(String string, RemoteFile destination)
copyStringToFile
in interface SecureChannel
public String toString(RemoteFile source)
toString
in interface SecureChannel
public void copyInputStreamToFile(InputStream source, RemoteFile destination)
copyInputStreamToFile
in interface SecureChannel
protected String getAbsolutePath(String absolutePath, String filename)
protected void addFilenameToPath(RemoteFile destination, String filename)
public void copyLocationToDirectory(String location, RemoteFile destination)
copyLocationToDirectory
in interface SecureChannel
public void copyFile(RemoteFile source, File destination)
copyFile
in interface SecureChannel
public void copyRemoteFile(String absolutePath, OutputStream out) throws IOException
copyRemoteFile
in interface SecureChannel
IOException
public void copyFile(RemoteFile source, OutputStream out) throws IOException
copyFile
in interface SecureChannel
IOException
public void copyFileToDirectory(RemoteFile source, File destination)
copyFileToDirectory
in interface SecureChannel
public void createDirectory(RemoteFile dir)
createDirectory
in interface SecureChannel
protected void createDirectories(RemoteFile file) throws com.jcraft.jsch.SftpException
com.jcraft.jsch.SftpException
protected 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.SftpException
protected 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 File getConfig()
public void setConfig(File config)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |