Mercurial > 510Connectbot
annotate src/org/tn5250j/framework/transport/SSLInterface.java @ 92:e5259eab903e
remove 5250 configuration
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 16 Jun 2014 16:22:34 -0700 |
parents | e8d2a24e85c6 |
children | 77ac18bc1b2f |
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 | |
28 /** | |
29 * Initialize the components required to create a new client socket | |
30 * when createSSLSocket is called. | |
92
e5259eab903e
remove 5250 configuration
Carl Byington <carl@five-ten-sg.com>
parents:
3
diff
changeset
|
31 * @param sslType The ssl socket type (NONE, SSLv2, SSLv3, TLS) |
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 |
3 | 34 * @see org.tn5250j.framework.transport.SSLConstants |
35 */ | |
92
e5259eab903e
remove 5250 configuration
Carl Byington <carl@five-ten-sg.com>
parents:
3
diff
changeset
|
36 public abstract void init(String sslType, String homeDirectory); |
3 | 37 |
38 /** | |
39 * Create a new socket | |
40 * @param destination | |
41 * @param port | |
42 * @return new socket, or null if none could be created. | |
43 */ | |
44 public abstract Socket createSSLSocket(String destination, int port); | |
45 | |
46 } |