1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.util.secure;
17
18 import java.io.File;
19 import java.io.IOException;
20 import java.io.InputStream;
21 import java.io.OutputStream;
22
23
24
25
26 @Deprecated
27 public interface SecureChannel {
28
29 void open() throws IOException;
30
31 void close();
32
33
34
35
36 @Deprecated
37 void copyFile(File source, RemoteFile destination);
38
39
40
41
42 @Deprecated
43 void copyLocationToFile(String location, RemoteFile destination);
44
45
46
47
48 @Deprecated
49 void copyInputStreamToFile(InputStream source, RemoteFile destination);
50
51
52
53
54 @Deprecated
55 void copyStringToFile(String string, RemoteFile destination);
56
57
58
59
60 @Deprecated
61 void copyLocationToDirectory(String location, RemoteFile destination);
62
63
64
65
66 @Deprecated
67 void copyFileToDirectory(File source, RemoteFile destination);
68
69
70
71
72 @Deprecated
73 void copyFile(RemoteFile source, File destination);
74
75
76
77
78 @Deprecated
79 void copyFileToDirectory(RemoteFile source, File destination);
80
81
82
83
84 @Deprecated
85 RemoteFile getMetaData(String absolutePath);
86
87 boolean exists(String absolutePath);
88
89 boolean isDirectory(String absolutePath);
90
91 void deleteFile(String absolutePath);
92
93
94
95
96 @Deprecated
97 void createDirectory(RemoteFile dir);
98
99
100
101
102 @Deprecated
103 RemoteFile getWorkingDirectory();
104
105
106
107
108 @Deprecated
109 Result executeCommand(String command);
110
111
112
113
114 @Deprecated
115 Result executeCommand(String command, String stdin);
116
117 void executeNoWait(String command);
118
119 void copyRemoteFile(String absolutePath, OutputStream out) throws IOException;
120
121
122
123
124 @Deprecated
125 void copyFile(RemoteFile source, OutputStream out) throws IOException;
126
127
128
129
130 @Deprecated
131 String toString(RemoteFile source);
132
133 }