comparison app/src/main/java/org/tn5250j/framework/transport/SSLInterface.java @ 438:d29cce60f393

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:23:55 -0800
parents src/org/tn5250j/framework/transport/SSLInterface.java@77ac18bc1b2f
children 2eb4fa13b9ef
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
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 sslType The ssl socket type (NONE, SSLv2, SSLv3, TLS)
32 * @param homeDirectory location of the .tn5250j subdirectory containing
33 * the keystore
34 * @see org.tn5250j.framework.transport.SSLConstants
35 */
36 public abstract void init(String sslType, String homeDirectory);
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 }