source: other-projects/trunk/gs3-release-maker/tasks/sshtaskdef/src/mindbright/ssh/SSHClientUserAdaptor.java@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 1.9 KB
Line 
1/******************************************************************************
2 *
3 * Copyright (c) 1998,99 by Mindbright Technology AB, Stockholm, Sweden.
4 * www.mindbright.se, [email protected]
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 *****************************************************************************
17 * $Author: mats $
18 * $Date: 2000/02/26 12:28:51 $
19 * $Name: rel1-2-1 $
20 *****************************************************************************/
21package mindbright.ssh;
22
23import java.io.File;
24import java.io.IOException;
25import java.net.Socket;
26
27public class SSHClientUserAdaptor implements SSHClientUser {
28
29 protected String sshHost;
30 protected int sshPort;
31
32 public SSHClientUserAdaptor(String server, int port) {
33 this.sshHost = server;
34 this.sshPort = port;
35 }
36
37 public SSHClientUserAdaptor(String server) {
38 this(server, SSH.DEFAULTPORT);
39 }
40
41 public String getSrvHost() {
42 return sshHost;
43 }
44
45 public int getSrvPort() {
46 return sshPort;
47 }
48
49 public Socket getProxyConnection() throws IOException {
50 return null;
51 }
52
53 public String getDisplay() {
54 return "";
55 }
56
57 public int getMaxPacketSz() {
58 return 0;
59 }
60
61 public int getAliveInterval() {
62 return 0;
63 }
64
65 public boolean wantX11Forward() {
66 return false;
67 }
68
69 public boolean wantPrivileged() {
70 return false;
71 }
72
73 public boolean wantPTY() {
74 return false;
75 }
76
77 public SSHInteractor getInteractor() {
78 return null;
79 }
80
81}
Note: See TracBrowser for help on using the repository browser.