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.
|
|
31 * @param type The ssl socket type (SSLv2, SSLv3, TLS)
|
|
32 * @see org.tn5250j.framework.transport.SSLConstants
|
|
33 */
|
|
34 public abstract void init(String sslType);
|
|
35
|
|
36 /**
|
|
37 * Create a new socket
|
|
38 * @param destination
|
|
39 * @param port
|
|
40 * @return new socket, or null if none could be created.
|
|
41 */
|
|
42 public abstract Socket createSSLSocket(String destination, int port);
|
|
43
|
|
44 } |