view src/org/tn5250j/framework/transport/SSLInterface.java @ 255:67f9a819157e
help shows full version info
author
Carl Byington <carl@five-ten-sg.com>
date
Mon, 14 Jul 2014 13:02:34 -0700 (2014-07-14)
parents
77ac18bc1b2f
children
line source
+ − package org.tn5250j.framework.transport;
+ −
+ − /*
+ − * @(#)SSLInterface.java
+ − *
+ − * Copyright: Copyright (c) 2001
+ − *
+ − * This program is free software; you can redistribute it and/or modify
+ − * it under the terms of the GNU General Public License as published by
+ − * the Free Software Foundation; either version 2, or (at your option)
+ − * any later version.
+ − *
+ − * This program is distributed in the hope that it will be useful,
+ − * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ − * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ − * GNU General Public License for more details.
+ − *
+ − * You should have received a copy of the GNU General Public License
+ − * along with this software; see the file COPYING. If not, write to
+ − * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ − * Boston, MA 02111-1307 USA
+ − *
+ − */
+ − import java.net.Socket;
+ −
+ − public interface SSLInterface {
+ −
+ − /**
+ − * Initialize the components required to create a new client socket
+ − * when createSSLSocket is called.
+ − * @param sslType The ssl socket type (NONE, SSLv2, SSLv3, TLS)
+ − * @param homeDirectory location of the .tn5250j subdirectory containing
+ − * the keystore
+ − * @see org.tn5250j.framework.transport.SSLConstants
+ − */
+ − public abstract void init(String sslType, String homeDirectory);
+ −
+ − /**
+ − * Create a new socket
+ − * @param destination
+ − * @param port
+ − * @return new socket, or null if none could be created.
+ − */
+ − public abstract Socket createSSLSocket(String destination, int port);
+ −
+ − }