Mercurial > 510Connectbot
annotate src/org/tn5250j/framework/transport/SSLInterface.java @ 359:93621e963303
allow eula agreement to be set from deployment.connections
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 03 Aug 2014 11:26:03 -0700 |
parents | 77ac18bc1b2f |
children |
rev | line source |
---|---|
3 | 1 package org.tn5250j.framework.transport; |
2 | |
3 /* | |
4 * @(#)SSLInterface.java | |
5 * | |
6 * Copyright: Copyright (c) 2001 | |
7 * | |
8 * This program is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2, or (at your option) | |
11 * any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this software; see the file COPYING. If not, write to | |
20 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, | |
21 * Boston, MA 02111-1307 USA | |
22 * | |
23 */ | |
24 import java.net.Socket; | |
25 | |
26 public interface SSLInterface { | |
27 | |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
28 /** |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
29 * Initialize the components required to create a new client socket |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
30 * when createSSLSocket is called. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
31 * @param sslType The ssl socket type (NONE, SSLv2, SSLv3, TLS) |
92
e5259eab903e
remove 5250 configuration
Carl Byington <carl@five-ten-sg.com>
parents:
3
diff
changeset
|
32 * @param homeDirectory location of the .tn5250j subdirectory containing |
e5259eab903e
remove 5250 configuration
Carl Byington <carl@five-ten-sg.com>
parents:
3
diff
changeset
|
33 * the keystore |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
34 * @see org.tn5250j.framework.transport.SSLConstants |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
35 */ |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
36 public abstract void init(String sslType, String homeDirectory); |
3 | 37 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
38 /** |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
39 * Create a new socket |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
40 * @param destination |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
41 * @param port |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
42 * @return new socket, or null if none could be created. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
43 */ |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
92
diff
changeset
|
44 public abstract Socket createSSLSocket(String destination, int port); |
3 | 45 |
46 } |