comparison src/org/tn5250j/framework/transport/SSLInterface.java @ 3:e8d2a24e85c6 tn5250

adding tn5250 files
author Carl Byington <carl@five-ten-sg.com>
date Thu, 22 May 2014 12:11:10 -0700
parents
children e5259eab903e
comparison
equal deleted inserted replaced
2:a01665cb683d 3:e8d2a24e85c6
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 }